Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ring_buf Struct Reference

A structure to represent a ring buffer. More...

#include <ring_buffer.h>

Detailed Description

A structure to represent a ring buffer.

The struct stores the buffer capacity size (N). No slot is sacrificed: read_idx and write_idx are free-running indices in [0, 2N), so the full and empty states are disambiguated by their lap rather than by a reserved slot. The user-visible capacity equals size.


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