libosmocore 1.11.0.30-c17053.202506162026
Osmocom core library
|
Osmocom message buffer. More...
#include <msgb.h>
Data Fields | ||
struct llist_head | list | |
linked list header | ||
union { | ||
void * dst | ||
reference of origin/destination More... | ||
struct gsm_bts_trx * trx | ||
}; | ||
struct gsm_lchan * | lchan | |
logical channel | ||
unsigned char * | l1h | |
pointer to Layer1 header (if any) | ||
unsigned char * | l2h | |
pointer to A-bis layer 2 header: OML, RSL(RLL), NS | ||
unsigned char * | l3h | |
pointer to Layer 3 header. | ||
unsigned char * | l4h | |
pointer to layer 4 header | ||
unsigned long | cb [5] | |
control buffer | ||
uint16_t | data_len | |
length of underlying data array | ||
uint16_t | len | |
length of bytes used in msgb | ||
unsigned char * | head | |
start of underlying memory buffer | ||
unsigned char * | tail | |
end of message in buffer | ||
unsigned char * | data | |
start of message in buffer | ||
unsigned char | _data [0] | |
optional immediate data array | ||
Osmocom message buffer.
union { ... } msgb |
optional immediate data array
Referenced by msgb_push(), and msgb_put().
start of message in buffer
Referenced by gsmtap_makemsg(), iofd_handle_segmentation(), msgb_headroom(), msgb_pull(), msgb_push(), msgb_push_tl(), msgb_resize_area(), osmo_sercomm_drv_pull(), osmo_wqueue_enqueue(), and osmo_wqueue_enqueue_quiet().
uint16_t msgb::data_len |
length of underlying data array
Referenced by msgb_headlen(), msgb_push(), msgb_put(), and msgb_tailroom().
void* msgb::dst |
reference of origin/destination
start of underlying memory buffer
Referenced by msgb_headroom(), msgb_push(), msgb_put(), and msgb_tailroom().
pointer to Layer1 header (if any)
Referenced by msgb_l1len().
pointer to A-bis layer 2 header: OML, RSL(RLL), NS
Referenced by msgb_l2len().
pointer to layer 4 header
Referenced by msgb_l4len().
uint16_t msgb::len |
length of bytes used in msgb
Referenced by gsmtap_makemsg(), msgb_get(), msgb_headlen(), msgb_pull(), msgb_push(), msgb_push_tl(), msgb_put(), msgb_reserve(), msgb_trim(), osmo_sercomm_alloc_msgb(), and osmo_wqueue_set_maxlen().
struct llist_head msgb::list |
linked list header
end of message in buffer
Referenced by iofd_poll_ofd_cb_recvmsg_sendmsg(), msgb_get(), msgb_l1len(), msgb_l2len(), msgb_l3len(), msgb_l4len(), msgb_printf(), msgb_put(), msgb_tailroom(), and osmo_sercomm_drv_pull().
struct gsm_bts_trx* msgb::trx |