zephyr/include/sys
Christopher Friedt 0ca511a49e sys: ring_buffer: ring_buf_peek() and ring_buf_size_get()
Add ring_buf_size_get() to get the number of bytes currently available
in the ring buffer.

Add ring_buf_peek() to read data from the head of a ring buffer without
removal.

Fixes #37145

Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
2021-07-28 07:32:28 -04:00
..
__assert.h assert: Completely remove file info and condition expression 2020-01-13 13:59:55 +01:00
arch_interface.h sys: arch_interface: fix doxygen groups 2021-05-21 12:17:04 -04:00
atomic.h kernel: atomic: possibility of arch specific implementation 2021-05-03 11:57:46 +02:00
atomic_arch.h kernel: atomic: possibility of arch specific implementation 2021-05-03 11:57:46 +02:00
atomic_builtin.h kernel: atomic: consistently use named type for atomic pointer values 2021-04-19 15:22:13 +02:00
atomic_c.h kernel: atomic: consistently use named type for atomic pointer values 2021-04-19 15:22:13 +02:00
base64.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
bitarray.h sys: introduce bit arrays 2021-05-07 13:36:22 -04:00
byteorder.h sys: byteorder: Fix incorrect shift in sys_get_be48/le48 2020-09-21 11:17:59 +02:00
cbprintf.h lib: os: cbprintf: Add support for conversion to fsc package 2021-07-27 14:50:45 +02:00
cbprintf_cxx.h lib: os: cbprintf: Add ARG_UNUSED to unused arguments 2021-05-20 08:23:31 -05:00
cbprintf_internal.h lib: os: cbprintf: Add support for conversion to fsc package 2021-07-27 14:50:45 +02:00
check.h base: add error checking macros 2020-01-20 17:19:54 -05:00
crc.h lib: os: Introduce support for CRC32C algorithm 2021-03-02 14:08:30 +01:00
device_mmio.h devices: mark device MMIO declarations to boot/pinned sections 2021-05-10 16:00:43 -05:00
dlist.h doc: strcutures: use doxygen to reference functions 2021-04-15 14:04:05 -04:00
errno_private.h kernel: support using thread local storage for errno 2020-10-24 10:52:00 -07:00
fdtable.h net: socket: Add locking to prevent concurrent access 2021-04-15 07:16:51 -05:00
kobject.h kernel: change metadata for priv_stacks to const 2021-04-27 13:32:00 -04:00
libc-hooks.h libc: minimal: Add rand() and srand() 2021-07-20 13:32:36 -04:00
list_gen.h cleanup: include/: move misc/util.h to sys/util.h 2019-06-27 22:55:49 -04:00
math_extras.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
math_extras_impl.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
mem_manage.h docs: Fix doxygen errors in include/sys/mem_manage.h 2021-05-28 11:30:51 -05:00
mpsc_packet.h lib: os: Add mpsc (multiple producer, single consumer) packet buffer 2021-04-19 10:59:23 -04:00
mpsc_pbuf.h tests: lib: Add test for mpsc_pbuf 2021-04-19 10:59:23 -04:00
mutex.h docs: Add missing retval for sys_mutex_unlock() 2021-03-10 05:42:06 -05:00
notify.h doc: doxygen: replace option alias with kconfig 2021-06-29 10:26:28 -04:00
onoff.h code-guideline: Fixing code violation 10.4 Rule 2020-10-01 17:13:29 -04:00
p4wq.h sys: p4wq: add missing docstring to K_P4WQ_ARRAY_DEFINE 2021-05-21 12:17:04 -04:00
printk.h sys: printk: Fix LOG2 printk support in cpp code 2021-06-29 11:33:21 -04:00
rb.h lib: rb: Use types that indicate size and signedness 2021-04-20 15:50:49 -04:00
reboot.h power: move reboot functionality to os lib 2021-04-28 20:34:00 -04:00
ring_buffer.h sys: ring_buffer: ring_buf_peek() and ring_buf_size_get() 2021-07-28 07:32:28 -04:00
sem.h linker: add iterable section macros 2020-06-24 17:09:22 -04:00
sflist.h doc: group data structure docs and add doxygen linkage 2021-04-15 14:04:05 -04:00
slist.h doc: group data structure docs and add doxygen linkage 2021-04-15 14:04:05 -04:00
speculation.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sys_heap.h kernel/arch: cleanup function definitions 2021-04-01 05:34:17 -04:00
sys_io.h sys_io: Expand the API to 64bits read/write functions 2020-12-08 09:29:20 -05:00
time_units.h include: sys: cast to the same size composite expression 2021-06-24 21:08:56 -04:00
timeutil.h doc: add a section for timeutil APIs 2021-01-20 16:38:56 -05:00
util.h sys: util: Move BIT macros from util.h to util_macro.h 2021-07-27 17:59:23 -04:00
util_internal.h sys: util: Update implementation of loop macros 2021-02-28 16:46:44 -05:00
util_loops.h sys: util: Update implementation of loop macros 2021-02-28 16:46:44 -05:00
util_macro.h sys: util: Move BIT macros from util.h to util_macro.h 2021-07-27 17:59:23 -04:00