5#ifndef ZEPHYR_INCLUDE_SYS_WINSTREAM_H_
6#define ZEPHYR_INCLUDE_SYS_WINSTREAM_H_
50 struct sys_winstream *ws = buf, tmp = { .len = buflen -
sizeof(*ws) };
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Lockless shared memory byte stream IPC.
Definition winstream.h:25
uint32_t start
Definition winstream.h:27
uint32_t len
Definition winstream.h:26
uint8_t data[]
Definition winstream.h:30
uint32_t end
Definition winstream.h:28
uint32_t seq
Definition winstream.h:29
uint32_t sys_winstream_read(struct sys_winstream *ws, uint32_t *seq, char *buf, uint32_t buflen)
Read bytes from a sys_winstream.
static struct sys_winstream * sys_winstream_init(void *buf, int buflen)
Construct a sys_winstream from a region of memory.
Definition winstream.h:48
void sys_winstream_write(struct sys_winstream *ws, const char *data, uint32_t len)
Write bytes to a sys_winstream.