[][src]Struct syscall::io::Dma

pub struct Dma<T: ?Sized> { /* fields omitted */ }

Implementations

impl<T> Dma<T>[src]

pub fn from_physbox_uninit(phys: PhysBox) -> Result<Dma<MaybeUninit<T>>>[src]

pub fn from_physbox_zeroed(phys: PhysBox) -> Result<Dma<MaybeUninit<T>>>[src]

pub fn from_physbox(phys: PhysBox, value: T) -> Result<Self>[src]

pub fn new(value: T) -> Result<Self>[src]

pub fn zeroed() -> Result<Dma<MaybeUninit<T>>>[src]

impl<T> Dma<MaybeUninit<T>>[src]

pub unsafe fn assume_init(self) -> Dma<T>[src]

impl<T: ?Sized> Dma<T>[src]

pub fn physical(&self) -> usize[src]

pub fn size(&self) -> usize[src]

pub fn phys(&self) -> &PhysBox[src]

impl<T> Dma<[T]>[src]

pub fn from_physbox_uninit_unsized(
    phys: PhysBox,
    len: usize
) -> Result<Dma<[MaybeUninit<T>]>>
[src]

pub fn from_physbox_zeroed_unsized(
    phys: PhysBox,
    len: usize
) -> Result<Dma<[MaybeUninit<T>]>>
[src]

pub unsafe fn zeroed_unsized(count: usize) -> Result<Self>[src]

Creates a new DMA buffer with a size only known at runtime.

Safety

  • T must be properly aligned.
  • T must be valid as zeroed (i.e. no NonNull pointers).

impl<T> Dma<[MaybeUninit<T>]>[src]

pub unsafe fn assume_init(self) -> Dma<[T]>[src]

Trait Implementations

impl<T: ?Sized> Deref for Dma<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: ?Sized> DerefMut for Dma<T>[src]

impl<T: ?Sized> Drop for Dma<T>[src]

Auto Trait Implementations

impl<T> !Send for Dma<T>

impl<T> !Sync for Dma<T>

impl<T: ?Sized> Unpin for Dma<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.