Lockless shared memory byte stream IPC.
The sys_winstream utility implements a unidirectional byte stream with simple read/write semantics on top of a memory region shared by the writer and reader. It requires no locking or synchronization mechanisms beyond reliable ordering of memory operations, and so is a good fit for use with heterogeneous shared memory environments (for example, where Zephyr needs to talk to other CPUs in the system running their own software).
This object does not keep track of the last sequence number read: the reader must keep that state and provide it on every read operation. After reaching "steady state", 'end' and 'start' are one byte apart because the buffer is always full.