Blkioq

Struct Blkioq 

Source
pub struct Blkioq { /* private fields */ }
Expand description

Dropping a Blkioq will safely remove the queue from the driver. Depending on the driver, this may eagerly free up resources that were dedicated to the queue.

Implementations§

Source§

impl Blkioq

Source

pub fn get_completion_fd(&self) -> Option<RawFd>

Source

pub fn set_completion_fd_enabled(&mut self, enabled: bool)

Source

pub fn read( &mut self, start: u64, buf: *mut u8, len: usize, user_data: usize, flags: ReqFlags, )

Source

pub fn write( &mut self, start: u64, buf: *const u8, len: usize, user_data: usize, flags: ReqFlags, )

Source

pub fn readv( &mut self, start: u64, iovec: *const iovec, iovcnt: u32, user_data: usize, flags: ReqFlags, )

Source

pub fn writev( &mut self, start: u64, iovec: *const iovec, iovcnt: u32, user_data: usize, flags: ReqFlags, )

Source

pub fn write_zeroes( &mut self, start: u64, len: u64, user_data: usize, flags: ReqFlags, )

Source

pub fn discard( &mut self, start: u64, len: u64, user_data: usize, flags: ReqFlags, )

Source

pub fn flush(&mut self, user_data: usize, flags: ReqFlags)

Source

pub fn report_zones( &mut self, offset: u64, zones: *mut MaybeUninit<Zone>, nr_zones: u32, user_data: usize, flags: ReqFlags, )

Source

pub fn close_zone(&mut self, offset: u64, user_data: usize, flags: ReqFlags)

Source

pub fn finish_zone(&mut self, offset: u64, user_data: usize, flags: ReqFlags)

Source

pub fn open_zone(&mut self, offset: u64, user_data: usize, flags: ReqFlags)

Source

pub fn reset_zone(&mut self, offset: u64, user_data: usize, flags: ReqFlags)

Source

pub fn close_all_zones(&mut self, user_data: usize, flags: ReqFlags)

Source

pub fn finish_all_zones(&mut self, user_data: usize, flags: ReqFlags)

Source

pub fn open_all_zones(&mut self, user_data: usize, flags: ReqFlags)

Source

pub fn reset_all_zones(&mut self, user_data: usize, flags: ReqFlags)

Source

pub fn do_io( &mut self, completions: &mut [MaybeUninit<Completion>], min_completions: usize, timeout: Option<&mut Duration>, sig: Option<&sigset_t>, ) -> Result<usize>

Auto Trait Implementations§

§

impl Freeze for Blkioq

§

impl !RefUnwindSafe for Blkioq

§

impl Send for Blkioq

§

impl Sync for Blkioq

§

impl Unpin for Blkioq

§

impl !UnwindSafe for Blkioq

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.