pub struct PagingHandlerImpl;Available on crate feature
paging only.Expand description
Implementation of [PagingHandler], to provide physical memory manipulation to
the [page_table_multiarch] crate.
Trait Implementations§
Source§impl PagingHandler for PagingHandlerImpl
impl PagingHandler for PagingHandlerImpl
Source§fn alloc_frames(num: usize, align: usize) -> Option<PhysAddr>
fn alloc_frames(num: usize, align: usize) -> Option<PhysAddr>
Allocate
num contiguous physical frames, with the starting physical
address aligned to align bytes (must be a power of two, and must be
a multiple of 4K).Source§fn dealloc_frames(paddr: PhysAddr, num: usize)
fn dealloc_frames(paddr: PhysAddr, num: usize)
Free
num contiguous physical frames starting from the given physical
address. The num must be the same as that used in allocation.Source§fn phys_to_virt(paddr: PhysAddr) -> VirtAddr
fn phys_to_virt(paddr: PhysAddr) -> VirtAddr
Returns a virtual address that maps to the given physical address. Read more
§fn alloc_frame() -> Option<PhysAddr>
fn alloc_frame() -> Option<PhysAddr>
Request to allocate a 4K-sized physical frame.
§fn dealloc_frame(paddr: PhysAddr)
fn dealloc_frame(paddr: PhysAddr)
Request to free a allocated physical frame.
Auto Trait Implementations§
impl Freeze for PagingHandlerImpl
impl RefUnwindSafe for PagingHandlerImpl
impl Send for PagingHandlerImpl
impl Sync for PagingHandlerImpl
impl Unpin for PagingHandlerImpl
impl UnwindSafe for PagingHandlerImpl
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