Skip to main content

HugeSplitDeposit

Struct HugeSplitDeposit 

Source
pub struct HugeSplitDeposit<T: TableMeta, A: FrameAllocator> { /* private fields */ }
Expand description

A child-table deposit bound to one observed huge leaf.

This is the page-table-generic equivalent of Linux’s deposited PTE page: allocation happens before the mutation critical section, dropping an unpublished deposit releases the frame, and apply consumes it only if the root and huge-leaf identity still match. The target address is deliberately not accepted by apply, so a deposit cannot be redirected to another leaf.

Implementations§

Source§

impl<T: TableMeta, A: FrameAllocator> HugeSplitDeposit<T, A>

Source

pub const fn block_vaddr(&self) -> VirtAddr

Source

pub const fn block_paddr(&self) -> PhysAddr

Source

pub const fn block_size(&self) -> usize

Source

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

Trait Implementations§

Source§

impl<T: TableMeta, A: FrameAllocator> Debug for HugeSplitDeposit<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 HugeSplitDeposit<T, A>
where ReservedTable<T, A>: Freeze, <<T as TableMeta>::P as PageTableEntry>::PteConfig: Freeze,

§

impl<T, A> RefUnwindSafe for HugeSplitDeposit<T, A>
where ReservedTable<T, A>: RefUnwindSafe, <<T as TableMeta>::P as PageTableEntry>::PteConfig: RefUnwindSafe,

§

impl<T, A> Send for HugeSplitDeposit<T, A>
where ReservedTable<T, A>: Send, <<T as TableMeta>::P as PageTableEntry>::PteConfig: Send,

§

impl<T, A> Sync for HugeSplitDeposit<T, A>
where ReservedTable<T, A>: Sync, <<T as TableMeta>::P as PageTableEntry>::PteConfig: Sync,

§

impl<T, A> Unpin for HugeSplitDeposit<T, A>
where ReservedTable<T, A>: Unpin, <<T as TableMeta>::P as PageTableEntry>::PteConfig: Unpin,

§

impl<T, A> UnsafeUnpin for HugeSplitDeposit<T, A>
where ReservedTable<T, A>: UnsafeUnpin, <<T as TableMeta>::P as PageTableEntry>::PteConfig: UnsafeUnpin,

§

impl<T, A> UnwindSafe for HugeSplitDeposit<T, A>
where ReservedTable<T, A>: UnwindSafe, <<T as TableMeta>::P as PageTableEntry>::PteConfig: 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.