Skip to main content

PageTableMovePlan

Struct PageTableMovePlan 

Source
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>

Source

pub const fn source_vaddr(&self) -> VirtAddr

Source

pub const fn destination_vaddr(&self) -> VirtAddr

Source

pub const fn paddr(&self) -> PhysAddr

Source

pub const fn config(&self) -> PteConfigOf<T>

Source

pub const fn page_size(&self) -> usize

Source

pub const fn destination_is_occupied(&self) -> bool

Source

pub const fn destination_page_size(&self) -> usize

Trait Implementations§

Source§

impl<T: TableMeta, A: FrameAllocator> Debug for PageTableMovePlan<T, A>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T, A> Freeze for PageTableMovePlan<T, A>
where PageTableLeafPlan<T>: Freeze, PageTableMoveDestination<T, A>: Freeze,

§

impl<T, A> RefUnwindSafe for PageTableMovePlan<T, A>
where PageTableLeafPlan<T>: RefUnwindSafe, PageTableMoveDestination<T, A>: RefUnwindSafe,

§

impl<T, A> Send for PageTableMovePlan<T, A>
where PageTableLeafPlan<T>: Send, PageTableMoveDestination<T, A>: Send,

§

impl<T, A> Sync for PageTableMovePlan<T, A>
where PageTableLeafPlan<T>: Sync, PageTableMoveDestination<T, A>: Sync,

§

impl<T, A> Unpin for PageTableMovePlan<T, A>
where PageTableLeafPlan<T>: Unpin, PageTableMoveDestination<T, A>: Unpin,

§

impl<T, A> UnsafeUnpin for PageTableMovePlan<T, A>
where PageTableLeafPlan<T>: UnsafeUnpin, PageTableMoveDestination<T, A>: UnsafeUnpin,

§

impl<T, A> UnwindSafe for PageTableMovePlan<T, A>
where PageTableLeafPlan<T>: UnwindSafe, PageTableMoveDestination<T, A>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.