Expand description
Ring buffer for async I/O submission and completion.
Each ring consists of two pages mapped into the owning processβs address space: a Submission Queue (SQ) page and a Completion Queue (CQ) page. The kernel tracks metadata (head/tail pointers, ownership) internally; only the raw SQE/CQE arrays are visible to userspace.
Re-exportsΒ§
use crate::memory;πuse crate::memory::address_space::VmaFlags;πuse crate::memory::address_space::VmaPageSize;πuse crate::memory::address_space::VmaType;πuse crate::memory::phys_to_virt;πuse crate::memory::PhysFrame;πuse crate::sync::SpinLock;πuse alloc::sync::Arc;πuse alloc::vec::Vec;πuse core::sync::atomic::AtomicU32;πuse core::sync::atomic::AtomicU64;πuse core::sync::atomic::Ordering;πuse super::ops::AsyncCqe;πuse super::ops::AsyncSqe;πuse super::ops::DEFAULT_RING_ENTRIES;π
StructsΒ§
- Ring
- A shared submission/completion ring for a single process.
- Ring
Meta π - Metadata header embedded at offset 0 of each ring page.
The SQE/CQE array starts at
RING_META_SIZEbytes from the page base.
EnumsΒ§
ConstantsΒ§
- MAX_
RINGS π - RING_
META_ πSIZE
StaticsΒ§
- NEXT_
RING_ πID - RING_
REGISTRY π
FunctionsΒ§
- destroy_
ring - Remove a ring from the registry and free its pages.
- find_
ring - Find a ring by its opaque id.
- next_
ring_ πid