|
struct msgb * | msgb_alloc (uint16_t size, const char *name) |
| Allocate a new message buffer.
|
|
void | msgb_free (struct msgb *m) |
| Release given message buffer.
|
|
void | msgb_enqueue (struct llist_head *queue, struct msgb *msg) |
| Enqueue message buffer to tail of a queue.
|
|
struct msgb * | msgb_dequeue (struct llist_head *queue) |
| Dequeue message buffer from head of queue.
|
|
void | msgb_reset (struct msgb *msg) |
| Re-set all message buffer pointers.
|
|
uint8_t * | msgb_data (const struct msgb *msg) |
| get pointer to data section of message buffer
|
|
uint16_t | msgb_length (const struct msgb *msg) |
| get length of message buffer
|
|
void | msgb_set_talloc_ctx (void *ctx) |
| Set the talloc context for msgb_alloc Deprecated, use msgb_talloc_ctx_init() instead.
|
|
void * | msgb_talloc_ctx_init (void *root_ctx, unsigned int pool_size) |
| Initialize a msgb talloc context for msgb_alloc. Create a talloc context called "msgb". If pool_size is 0, create a named const as msgb talloc context. If pool_size is nonzero, create a talloc pool, possibly for faster msgb allocations (see talloc_pool()).
|
|
struct msgb * | msgb_copy (const struct msgb *msg, const char *name) |
| Copy an msgb.
|
|
int | msgb_resize_area (struct msgb *msg, uint8_t *area, int old_size, int new_size) |
| Resize an area within an msgb.
|
|
const char * | msgb_hexdump (const struct msgb *msg) |
| Return a (static) buffer containing a hexdump of the msg.
|
|