Go to the source code of this file.
|
static uint32_t | spsc_pbuf_capacity (struct spsc_pbuf *pb) |
| Get buffer capacity.
|
|
struct spsc_pbuf * | spsc_pbuf_init (void *buf, size_t blen, uint32_t flags) |
| Initialize the packet buffer.
|
|
int | spsc_pbuf_write (struct spsc_pbuf *pb, const char *buf, uint16_t len) |
| Write specified amount of data to the packet buffer.
|
|
int | spsc_pbuf_alloc (struct spsc_pbuf *pb, uint16_t len, char **buf) |
| Allocate space in the packet buffer.
|
|
void | spsc_pbuf_commit (struct spsc_pbuf *pb, uint16_t len) |
| Commit packet to the buffer.
|
|
int | spsc_pbuf_read (struct spsc_pbuf *pb, char *buf, uint16_t len) |
| Read specified amount of data from the packet buffer.
|
|
uint16_t | spsc_pbuf_claim (struct spsc_pbuf *pb, char **buf) |
| Claim packet from the buffer.
|
|
void | spsc_pbuf_free (struct spsc_pbuf *pb, uint16_t len) |
| Free the packet to the buffer.
|
|
int | spsc_pbuf_get_utilization (struct spsc_pbuf *pb) |
| Get maximum utilization of the packet buffer.
|
|