#[repr(C)]pub struct iocb_t {
pub aio_data: u64,
pub aio_key: u32,
pub aio_rw_flags: rwf_t,
pub aio_lio_opcode: u16,
pub aio_reqprio: i16,
pub aio_fildes: u32,
pub aio_buf: u64,
pub aio_nbytes: u64,
pub aio_offset: i64,
pub aio_reserved2: u64,
pub aio_flags: u32,
pub aio_resfd: u32,
}Expand description
we always use a 64bit off_t when communicating
with userland. its up to libraries to do the
proper padding and aio_error abstraction
Fields§
§aio_data: u64these are internal to the kernel/libc. data to be returned in event’s data */
aio_key: u32the kernel sets aio_key to the req #
aio_rw_flags: rwf_tRWF_* flags
aio_lio_opcode: u16common fields
aio_reqprio: i16§aio_fildes: u32§aio_buf: u64§aio_nbytes: u64§aio_offset: i64§aio_reserved2: u64extra parameters
aio_flags: u32flags for the struct iocb
aio_resfd: u32If the IOCB_FLAG_RESFD flag of aio_flags is set, this is an eventfd
to signal AIO readiness to
Trait Implementations§
Auto Trait Implementations§
impl Freeze for iocb_t
impl RefUnwindSafe for iocb_t
impl Send for iocb_t
impl Sync for iocb_t
impl Unpin for iocb_t
impl UnwindSafe for iocb_t
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