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

Single producer, single consumer packet buffer. More...

#include <spsc_pbuf.h>

Data Fields

struct spsc_pbuf_common common
 
union { 
 
   struct spsc_pbuf_ext_cache   cache 
 
   struct spsc_pbuf_ext_nocache   nocache 
 
ext 
 

Detailed Description

Single producer, single consumer packet buffer.

The SPSC packet buffer implements lightweight unidirectional packet buffer with read/write semantics on top of a memory region shared by the reader and writer. It optionally embeds cache and memory barrier management to ensure correct data access.

This structure supports single writer and reader. Data stored in the buffer is encapsulated to a message (with length header).

Field Documentation

◆ cache

struct spsc_pbuf_ext_cache spsc_pbuf::cache

◆ common

struct spsc_pbuf_common spsc_pbuf::common

◆ [union]

union { ... } spsc_pbuf::ext

◆ nocache

struct spsc_pbuf_ext_nocache spsc_pbuf::nocache

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