#[repr(C)]pub struct AsyncSqe {
pub opcode: u8,
pub flags: u8,
pub ioprio: u16,
pub fd: u32,
pub off: u64,
pub addr: u64,
pub len: u32,
pub op_flags: u32,
pub user_data: u64,
pub personality: u16,
pub _pad: [u8; 22],
}Expand description
A single I/O submission, written by userspace into the SQ ring.
Fields§
§opcode: u8Operation opcode (AsyncOp variant).
flags: u8Flags: FIXED_FILE, IO_LINK, IO_DRAIN, IO_HARDLINK.
ioprio: u16Priority hint (ioprio class << 13 | ioprio data).
fd: u32File descriptor (VFS fd) or IPC port id.
off: u64File offset (for read/write) or endpoint id (for IPC).
addr: u64Buffer virtual address (userspace pointer : validated by kernel).
len: u32Buffer length in bytes.
op_flags: u32Operation-specific flags (e.g. RW_FSYNC for write).
user_data: u64Opaque correlation token : echoed in the CQE on completion.
personality: u16Personality / capability context (silo token).
_pad: [u8; 22]Padding to 64 bytes (cache-line aligned).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncSqe
impl RefUnwindSafe for AsyncSqe
impl Send for AsyncSqe
impl Sync for AsyncSqe
impl Unpin for AsyncSqe
impl UnsafeUnpin for AsyncSqe
impl UnwindSafe for AsyncSqe
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more