Zephyr API 3.6.99
Loading...
Searching...
No Matches
net_buf_pool Struct Reference

Network buffer pool representation. More...

#include <net_buf.h>

Data Fields

struct k_lifo free
 LIFO to place the buffer into when free.
 
struct k_spinlock lock
 To prevent concurrent access/modifications.
 
const uint16_t buf_count
 Number of buffers in pool.
 
uint16_t uninit_count
 Number of uninitialized buffers.
 
uint8_t user_data_size
 Size of user data allocated to this pool.
 
void(*const destroy )(struct net_buf *buf)
 Optional destroy callback when buffer is freed.
 
const struct net_buf_data_alloc * alloc
 Data allocation handlers.
 

Detailed Description

Network buffer pool representation.

This struct is used to represent a pool of network buffers.

Field Documentation

◆ alloc

const struct net_buf_data_alloc* net_buf_pool::alloc

Data allocation handlers.

◆ buf_count

const uint16_t net_buf_pool::buf_count

Number of buffers in pool.

◆ destroy

void(*const net_buf_pool::destroy) (struct net_buf *buf)

Optional destroy callback when buffer is freed.

◆ free

struct k_lifo net_buf_pool::free

LIFO to place the buffer into when free.

◆ lock

struct k_spinlock net_buf_pool::lock

To prevent concurrent access/modifications.

◆ uninit_count

uint16_t net_buf_pool::uninit_count

Number of uninitialized buffers.

◆ user_data_size

uint8_t net_buf_pool::user_data_size

Size of user data allocated to this pool.


The documentation for this struct was generated from the following file: