pub struct Dma<T: ?Sized> { /* private fields */ }
Implementations§
source§impl<T> Dma<T>
impl<T> Dma<T>
pub fn from_physbox_uninit(phys: PhysBox) -> Result<Dma<MaybeUninit<T>>>
pub fn from_physbox_zeroed(phys: PhysBox) -> Result<Dma<MaybeUninit<T>>>
pub fn from_physbox(phys: PhysBox, value: T) -> Result<Self>
pub fn new(value: T) -> Result<Self>
pub fn zeroed() -> Result<Dma<MaybeUninit<T>>>
source§impl<T> Dma<MaybeUninit<T>>
impl<T> Dma<MaybeUninit<T>>
pub unsafe fn assume_init(self) -> Dma<T>
source§impl<T> Dma<[T]>
impl<T> Dma<[T]>
pub fn from_physbox_uninit_unsized( phys: PhysBox, len: usize ) -> Result<Dma<[MaybeUninit<T>]>>
pub fn from_physbox_zeroed_unsized( phys: PhysBox, len: usize ) -> Result<Dma<[MaybeUninit<T>]>>
sourcepub unsafe fn zeroed_unsized(count: usize) -> Result<Self>
pub unsafe fn zeroed_unsized(count: usize) -> Result<Self>
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).