pub struct PreparedDma { /* private fields */ }Expand description
DMA backing prepared for device access but not yet owned by hardware.
Implementations§
Source§impl PreparedDma
impl PreparedDma
pub fn len(&self) -> NonZeroUsize
pub const fn direction(&self) -> DmaDirection
pub const fn domain_id(&self) -> DmaDomainId
pub fn cpu_ptr(&self) -> NonNull<u8>
pub fn dma_addr(&self) -> DmaAddr
pub fn segment(&self) -> DmaSegment
pub fn segments(&self) -> [DmaSegment; 1]
pub fn into_cpu_buffer(self) -> CpuDmaBuffer
Sourcepub unsafe fn into_in_flight(self) -> InFlightDma
pub unsafe fn into_in_flight(self) -> InFlightDma
§Safety
The caller must start hardware ownership using this prepared backing and later return it only after hardware is quiesced.
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedDma
impl !UnwindSafe for PreparedDma
impl Freeze for PreparedDma
impl Send for PreparedDma
impl Sync for PreparedDma
impl Unpin for PreparedDma
impl UnsafeUnpin for PreparedDma
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