pub struct PageTableMovePlan<T: TableMeta, A: FrameAllocator> { /* private fields */ }Expand description
Allocation-free preimage for one page-table leaf relocation.
A vacant destination must already have all intermediate directories. Use
PageTableMapPlan::prepare_path before constructing the final move plan
when the destination hierarchy is absent.
Implementations§
Source§impl<T: TableMeta, A: FrameAllocator> PageTableMovePlan<T, A>
impl<T: TableMeta, A: FrameAllocator> PageTableMovePlan<T, A>
pub const fn source_vaddr(&self) -> VirtAddr
pub const fn destination_vaddr(&self) -> VirtAddr
pub const fn paddr(&self) -> PhysAddr
pub const fn config(&self) -> PteConfigOf<T>
pub const fn page_size(&self) -> usize
pub const fn destination_is_occupied(&self) -> bool
pub const fn destination_page_size(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<T, A> Freeze for PageTableMovePlan<T, A>
impl<T, A> RefUnwindSafe for PageTableMovePlan<T, A>
impl<T, A> Send for PageTableMovePlan<T, A>
impl<T, A> Sync for PageTableMovePlan<T, A>
impl<T, A> Unpin for PageTableMovePlan<T, A>
impl<T, A> UnsafeUnpin for PageTableMovePlan<T, A>
impl<T, A> UnwindSafe for PageTableMovePlan<T, A>
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