netbuf_alloc() is only used within LwIP.
 
Symbols
loading...
Files
loading...

netbuf_alloc() function

Allocate memory for a packet buffer for a given netbuf.

Syntax

void * netbuf_alloc (struct netbuf *buf,     u16_t size);
Implemented in netbuf.c:101

Arguments

buf

the netbuf for which to allocate a packet buffer

size

the size of the packet buffer to allocate

Return value

pointer to the allocated memory NULL if no memory could be allocated

References

LocationText
netbuf.c:102
netbuf_alloc(struct netbuf *buf, u16_t size)
netbuf.h:76
void * netbuf_alloc (struct netbuf *buf, u16_t size);

Call Tree

Functions called by netbuf_alloc()
netbuf_alloc()
printf()
all items filtered out
Data read by netbuf_alloc()
Data written by netbuf_alloc()
netbuf_alloc()
all items filtered out