sel4_shared_ring_buffer_block_io

Struct OwnedSharedRingBufferBlockIO

Source
pub struct OwnedSharedRingBufferBlockIO<S, A, F> { /* private fields */ }

Implementations§

Source§

impl<S: SlotSemaphore, A: AbstractBounceBufferAllocator, F: FnMut()> OwnedSharedRingBufferBlockIO<S, A, F>

Source

pub fn new( dma_region: ExternallySharedRef<'static, [u8]>, bounce_buffer_allocator: BounceBufferAllocator<A>, ring_buffers: RingBuffers<'static, Provide, F, BlockIORequest>, ) -> Self

Source

pub fn slot_set_semaphore(&self) -> &SlotSetSemaphoreHandle<S, NUM_SLOT_POOLS>

Source

pub fn issue_read_request( &mut self, reservation: &mut SlotSetReservation<'_, S, NUM_SLOT_POOLS>, start_block_idx: u64, num_bytes: usize, ) -> Result<usize, ErrorOrUserError>

Source

pub fn issue_write_request( &mut self, reservation: &mut SlotSetReservation<'_, S, NUM_SLOT_POOLS>, start_block_idx: u64, buf: &[u8], ) -> Result<usize, ErrorOrUserError>

Source

pub fn issue_request( &mut self, reservation: &mut SlotSetReservation<'_, S, NUM_SLOT_POOLS>, start_block_idx: u64, buf: &mut IssueRequestBuf<'_>, ) -> Result<usize, ErrorOrUserError>

Source

pub fn cancel_request( &mut self, request_index: usize, ) -> Result<(), ErrorOrUserError>

Source

pub fn poll_read_request( &mut self, request_index: usize, buf: &mut [u8], waker: Option<Waker>, ) -> Result<Poll<Result<(), IOError>>, ErrorOrUserError>

Source

pub fn poll_write_request( &mut self, request_index: usize, waker: Option<Waker>, ) -> Result<Poll<Result<(), IOError>>, ErrorOrUserError>

Source

pub fn poll_request( &mut self, request_index: usize, buf: &mut PollRequestBuf<'_>, waker: Option<Waker>, ) -> Result<Poll<Result<(), IOError>>, ErrorOrUserError>

Source

pub fn poll(&mut self) -> Result<bool, ErrorOrUserError>

Auto Trait Implementations§

§

impl<S, A, F> Freeze for OwnedSharedRingBufferBlockIO<S, A, F>
where A: Freeze, F: Freeze, S: Freeze,

§

impl<S, A, F> RefUnwindSafe for OwnedSharedRingBufferBlockIO<S, A, F>
where A: RefUnwindSafe, F: RefUnwindSafe, S: RefUnwindSafe,

§

impl<S, A, F> Send for OwnedSharedRingBufferBlockIO<S, A, F>
where A: Send, F: Send, S: Send,

§

impl<S, A, F> Sync for OwnedSharedRingBufferBlockIO<S, A, F>
where A: Sync, F: Sync, S: Sync,

§

impl<S, A, F> Unpin for OwnedSharedRingBufferBlockIO<S, A, F>
where A: Unpin, F: Unpin, S: Unpin,

§

impl<S, A, F> UnwindSafe for OwnedSharedRingBufferBlockIO<S, A, F>
where A: UnwindSafe, F: UnwindSafe, S: UnwindSafe,

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T, U> TryFrom<U> for T
where 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>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.