Lines Matching refs:netbuf

43 #include "lwip/netbuf.h"
49 * Create (allocate) and initialize a new netbuf.
50 * The netbuf doesn't yet contain a packet buffer!
52 * @return a pointer to a new netbuf
56 netbuf *netbuf_new(void)
58 struct netbuf *buf;
60 buf = (struct netbuf *)memp_malloc(MEMP_NETBUF);
82 * Deallocate a netbuf allocated by netbuf_new().
84 * @param buf pointer to a netbuf allocated by netbuf_new()
87 netbuf_delete(struct netbuf *buf)
99 * Allocate memory for a packet buffer for a given netbuf.
101 * @param buf the netbuf for which to allocate a packet buffer
107 netbuf_alloc(struct netbuf *buf, u16_t size)
126 * Free the packet buffer included in a netbuf
128 * @param buf pointer to the netbuf which contains the packet buffer to free
131 netbuf_free(struct netbuf *buf)
141 * Let a netbuf reference existing (non-volatile) data.
143 * @param buf netbuf which should reference the data
150 netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size)
168 * Chain one netbuf to another (@see pbuf_chain)
170 * @param head the first netbuf
171 * @param tail netbuf to chain after head, freed by this function, may not be reference after returning
174 netbuf_chain(struct netbuf *head, struct netbuf *tail)
184 * Get the data pointer and length of the data inside a netbuf.
186 * @param buf netbuf to get the data from
193 netbuf_data(struct netbuf *buf, void **dataptr, u16_t *len)
208 * Move the current data pointer of a packet buffer contained in a netbuf
212 * @param buf the netbuf to modify
218 netbuf_next(struct netbuf *buf)
232 * Move the current data pointer of a packet buffer contained in a netbuf
236 * @param buf the netbuf to modify
239 netbuf_first(struct netbuf *buf)