|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Network buffer representation. More...
#include <zephyr/net_buf.h>
Data Fields | |
| sys_snode_t | node |
| Allow placing the buffer into sys_slist_t. | |
| struct net_buf * | frags |
| Fragments associated with this buffer. | |
| uint8_t | ref |
| Reference count. | |
| uint8_t | flags |
| Bit-field of buffer flags. | |
| uint8_t | pool_id |
| Where the buffer should go when freed up. | |
| uint8_t | user_data_size |
| Size of user data on this buffer. | |
| union { | |
| struct { | |
| uint8_t * data | |
| Pointer to the start of data in the buffer. More... | |
| uint16_t len | |
| Length of the data behind the data pointer. More... | |
| uint16_t size | |
| Amount of data that this buffer can store. More... | |
| } | |
| }; | |
| Union for convenience access to the net_buf_simple members, also preserving the old API. | |
| uint8_t | user_data [] |
| System metadata for this buffer. | |
Network buffer representation.
This struct is used to represent network buffers. Such buffers are normally defined through the NET_BUF_POOL_*_DEFINE() APIs and allocated using the net_buf_alloc() API.
| union { ... } net_buf |
Union for convenience access to the net_buf_simple members, also preserving the old API.
| uint8_t* net_buf::data |
Pointer to the start of data in the buffer.
| uint8_t net_buf::flags |
Bit-field of buffer flags.
| struct net_buf* net_buf::frags |
Fragments associated with this buffer.
| uint16_t net_buf::len |
Length of the data behind the data pointer.
| sys_snode_t net_buf::node |
Allow placing the buffer into sys_slist_t.
| uint8_t net_buf::pool_id |
Where the buffer should go when freed up.
| uint8_t net_buf::ref |
Reference count.
| uint16_t net_buf::size |
Amount of data that this buffer can store.
| uint8_t net_buf::user_data[] |
System metadata for this buffer.
Cleared on allocation.
| uint8_t net_buf::user_data_size |
Size of user data on this buffer.