Skip to main content

Module lockfree_ring

Module lockfree_ring 

Source
Expand description

Lock-free bounded message queue backed by [crossbeam_queue::ArrayQueue].

Replaces the previous manual atomic-ring implementation with a safe, well-tested SPSC/MPSC queue. Keeps the same external API (write/read/try_write/try_read/has_data/has_space) for backward compatibility.

Physical frames are still allocated for frame_phys_addrs() (IPC ring syscall compat). DMA is not supported : the NIC data plane uses dedicated hardware ring buffers.

Structs§

DmaBuffer
Descriptor for a DMA-accessible buffer region.
LockFreeRing
A bounded lock-free message queue.

Enums§

RingError
Errors returned by ring operations.