Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

MPSC packet buffer structure. More...

#include <mpsc_pbuf.h>

Data Fields

uint32_t tmp_wr_idx
 Temporary write index.
 
uint32_t wr_idx
 Write index.
 
uint32_t tmp_rd_idx
 Temporary read index.
 
uint32_t rd_idx
 Read index.
 
uint32_t flags
 Flags.
 
struct k_spinlock lock
 Lock.
 
mpsc_pbuf_notify_drop notify_drop
 User callback called whenever packet is dropped.
 
mpsc_pbuf_get_wlen get_wlen
 Callback for getting packet length.
 
uint32_tbuf
 
uint32_t size
 
uint32_t max_usage
 
struct k_sem sem
 

Detailed Description

MPSC packet buffer structure.

Field Documentation

◆ buf

uint32_t* mpsc_pbuf_buffer::buf

◆ flags

uint32_t mpsc_pbuf_buffer::flags

Flags.

◆ get_wlen

mpsc_pbuf_get_wlen mpsc_pbuf_buffer::get_wlen

Callback for getting packet length.

◆ lock

struct k_spinlock mpsc_pbuf_buffer::lock

Lock.

◆ max_usage

uint32_t mpsc_pbuf_buffer::max_usage

◆ notify_drop

mpsc_pbuf_notify_drop mpsc_pbuf_buffer::notify_drop

User callback called whenever packet is dropped.

May be NULL if unneeded.

◆ rd_idx

uint32_t mpsc_pbuf_buffer::rd_idx

Read index.

◆ sem

struct k_sem mpsc_pbuf_buffer::sem

◆ size

uint32_t mpsc_pbuf_buffer::size

◆ tmp_rd_idx

uint32_t mpsc_pbuf_buffer::tmp_rd_idx

Temporary read index.

◆ tmp_wr_idx

uint32_t mpsc_pbuf_buffer::tmp_wr_idx

Temporary write index.

◆ wr_idx

uint32_t mpsc_pbuf_buffer::wr_idx

Write index.


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