Skip to content

Commit 7903e5e

Browse files
committed
lib/utils: Ring buffer api overhaul
The ring buffer api has been overhauled to provide a smaller memory footprint and more efficient implementation. The new api is not backwards compatible. Signed-off-by: Måns Ansgariusson <[email protected]>
1 parent 9c5325d commit 7903e5e

File tree

11 files changed

+1076
-569
lines changed

11 files changed

+1076
-569
lines changed

include/zephyr/kernel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5346,7 +5346,7 @@ enum pipe_flags {
53465346

53475347
struct k_pipe {
53485348
size_t waiting;
5349-
struct ring_buf buf;
5349+
struct ring_buffer buf;
53505350
struct k_spinlock lock;
53515351
_wait_q_t data;
53525352
_wait_q_t space;
@@ -5365,7 +5365,7 @@ struct k_pipe {
53655365
#define Z_PIPE_INITIALIZER(obj, pipe_buffer, pipe_buffer_size) \
53665366
{ \
53675367
.waiting = 0, \
5368-
.buf = RING_BUF_INIT(pipe_buffer, pipe_buffer_size), \
5368+
.buf = RING_BUFFER_INIT(pipe_buffer, pipe_buffer_size), \
53695369
.data = Z_WAIT_Q_INIT(&obj.data), \
53705370
.space = Z_WAIT_Q_INIT(&obj.space), \
53715371
.flags = PIPE_FLAG_OPEN, \

0 commit comments

Comments
 (0)