[−][src]Struct syscall::io_uring::v1::SqEntry32
A 32-bit Submission Queue Entry, representing a syscall to submit. Takes up 32 bytes of
space. Implements Ord
by comparing priority, so that they can be stored in BinaryHeap
.
This entry type is not restricted to only 32-bit platforms, and can be used as a smaller
alternative entry type, to fit more entries within the same memory region.
Fields
opcode: u8
An opcode with varying definitions; by default it is one of StandardOpcode
. Works
the same way as with SqEntry64::opcode
.
This field belongs to the "implicit fields".
flags: u8
Flags specifying how the submission is going to be executed, and etc.
This field belongs to the "implicit fields".
priority: u16
The priority of the syscall; higher priorities may cause the syscall to be reordererd with lower priority syscalls.
This field belongs to the "implicit fields".
syscall_flags: u32
Specific to the opcode, but usually bitflags.
fd: u32
Specific to the opcode, but usually a file descriptor to operate on.
len: u32
Specific to the opcode, but usually the length of a buffer, or number of items.
user_data: u32
A custom value that is simply passed on to the completion entry, allowing completions to be distinguished between each other, and mapped to their corresponding submissions.
This field belongs to the "implicit fields".
addr: u32
Specific to the syscall, but usually an address to a buffer.
offset: u64
Specific to the syscall, and can be used for many different purposes, sometimes also as an address in order to access the 64-bit address space for opcodes that do not use it for anything else.
Trait Implementations
impl Clone for SqEntry32
[src]
fn clone(&self) -> SqEntry32
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SqEntry32
[src]
impl Debug for SqEntry32
[src]
impl Default for SqEntry32
[src]
impl Eq for SqEntry32
[src]
impl GenericSubmissionEntry for SqEntry32
[src]
fn opcode(&self) -> u8
[src]
fn sqe_flags(&self) -> u8
[src]
fn priority(&self) -> u16
[src]
fn syscall_flags(&self) -> u32
[src]
fn len_raw(&self) -> Either<u32, u64>
[src]
fn user_data_raw(&self) -> Either<u32, u64>
[src]
fn fd_raw(&self) -> Either<u32, u64>
[src]
fn addr_raw(&self) -> Either<u32, u64>
[src]
fn offset(&self) -> u64
[src]
impl Hash for SqEntry32
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for SqEntry32
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<SqEntry32> for SqEntry32
[src]
impl PartialOrd<SqEntry32> for SqEntry32
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SqEntry32
[src]
impl StructuralPartialEq for SqEntry32
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,