pub struct PhysFrame<H: AxMmHal> { /* private fields */ }Expand description
Implementations§
Source§impl<H: AxMmHal> PhysFrame<H>
impl<H: AxMmHal> PhysFrame<H>
Sourcepub fn alloc_zero() -> AxResult<Self>
pub fn alloc_zero() -> AxResult<Self>
Allocate a PhysFrame and fill it with zeros.
Sourcepub fn start_paddr(&self) -> HostPhysAddr
pub fn start_paddr(&self) -> HostPhysAddr
Get the starting physical address of the frame.
Sourcepub fn as_mut_ptr(&self) -> *mut u8
pub fn as_mut_ptr(&self) -> *mut u8
Get a mutable pointer to the frame.
Trait Implementations§
Auto Trait Implementations§
impl<H> Freeze for PhysFrame<H>
impl<H> RefUnwindSafe for PhysFrame<H>where
H: RefUnwindSafe,
impl<H> Send for PhysFrame<H>where
H: Send,
impl<H> Sync for PhysFrame<H>where
H: Sync,
impl<H> Unpin for PhysFrame<H>where
H: Unpin,
impl<H> UnsafeUnpin for PhysFrame<H>
impl<H> UnwindSafe for PhysFrame<H>where
H: UnwindSafe,
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