pub struct Arena { /* private fields */ }Expand description
The DMA arena the kernel granted this driver. Not Copy: Arena::layout takes it, so a laid-out
arena is reached only through its parts.
Implementations§
Source§impl Arena
impl Arena
Sourcepub fn phys_at(&self, off: usize) -> u64
pub fn phys_at(&self, off: usize) -> u64
The physical address of byte off: what the device is given.
Sourcepub fn zero(&self)
pub fn zero(&self)
Zero the whole arena, with aligned volatile stores (never a memset, which may fault on the
Device memory a non-coherent port maps it as).
Auto Trait Implementations§
impl Freeze for Arena
impl RefUnwindSafe for Arena
impl !Send for Arena
impl !Sync for Arena
impl Unpin for Arena
impl UnsafeUnpin for Arena
impl UnwindSafe for Arena
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