[−][src]Struct syscall::io::Dma
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]
phys: PhysBox,
len: usize
) -> Result<Dma<[MaybeUninit<T>]>>
pub fn from_physbox_zeroed_unsized(
phys: PhysBox,
len: usize
) -> Result<Dma<[MaybeUninit<T>]>>
[src]
phys: PhysBox,
len: usize
) -> Result<Dma<[MaybeUninit<T>]>>
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]
impl<T: ?Sized> DerefMut for Dma<T>
[src]
impl<T: ?Sized> Drop for Dma<T>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
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>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,