Symbols
loading...
Files
loading...

pbuf_alloced_custom() function

Initialize a custom pbuf (already allocated). Example of custom pbuf usage: zerocopyrx

Syntax

struct pbuf *pbuf_alloced_custom(pbuf_layer l,     u16_t length,     pbuf_type type,     struct pbuf_custom *p,     void *payload_mem,     u16_t payload_mem_len);
Implemented in pbuf.c:362

Arguments

l

header size

length

size of the pbuf's payload

type

type of the pbuf (only used to treat the pbuf accordingly, as this function allocates no memory)

p

pointer to the custom pbuf to initialize (already allocated)

payload_mem

pointer to the buffer that is used for payload and headers, must be at least big enough to hold 'length' plus the header size, may be NULL if set later. ATTENTION: The caller is responsible for correct alignment of this buffer!!

payload_mem_len

the size of the 'payload_mem' buffer, must be at least big enough to hold 'length' plus the header size

Examples

pbuf_alloced_custom() is referenced by 28 libraries and example projects.

References

LocationReferrerText
pbuf.c:363
pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type, struct pbuf_custom *p,
pbuf.h:275
struct pbuf *pbuf_alloced_custom(pbuf_layer l, u16_t length, pbuf_type type,
ip4_frag.c:827ip4_frag()
newpbuf = pbuf_alloced_custom(PBUF_RAW, newpbuflen, PBUF_REF, &pcr->pc,

Call Tree

Functions calling pbuf_alloced_custom()
Functions called by pbuf_alloced_custom()
all items filtered out
pbuf_alloced_custom()
all items filtered out
Data read by pbuf_alloced_custom()
Data written by pbuf_alloced_custom()
pbuf_alloced_custom()
pbuf_alloced_custom()::payload
all items filtered out
Type of pbuf_alloced_custom()
pbuf_alloced_custom()
all items filtered out