Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
|
|
3.0.0 |
Network buffer pool representation. More...
#include <buf.h>
Data Fields | |
struct k_lifo | free |
struct k_spinlock | lock |
const uint16_t | buf_count |
uint16_t | uninit_count |
uint8_t | user_data_size |
void(*const | destroy )(struct net_buf *buf) |
const struct net_buf_data_alloc * | alloc |
Network buffer pool representation.
This struct is used to represent a pool of network buffers.
const struct net_buf_data_alloc* net_buf_pool::alloc |
Data allocation handlers.
const uint16_t net_buf_pool::buf_count |
Number of buffers in pool
void(*const net_buf_pool::destroy) (struct net_buf *buf) |
Optional destroy callback when buffer is freed.
struct k_lifo net_buf_pool::free |
LIFO to place the buffer into when free
struct k_spinlock net_buf_pool::lock |
uint16_t net_buf_pool::uninit_count |
Number of uninitialized buffers
uint8_t net_buf_pool::user_data_size |