Struct syscall::io::Dma [−][src]
pub struct Dma<T: ?Sized> { /* fields omitted */ }
Implementations
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>]>>
Creates a new DMA buffer with a size only known at runtime.
Safety
Tmust be properly aligned.Tmust be valid as zeroed (i.e. no NonNull pointers).