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.
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