PageTableInner

Struct PageTableInner 

Source
pub struct PageTableInner {
    root: Ppn,
    frames: Vec<FrameTracker>,
    is_user: bool,
}

Fields§

§root: Ppn§frames: Vec<FrameTracker>§is_user: bool

Trait Implementations§

Source§

impl Debug for PageTableInner

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PageTableInner<PageTableEntry> for PageTableInner

Source§

const LEVELS: usize = 3usize

Source§

const MAX_VA_BITS: usize = 39usize

Source§

const MAX_PA_BITS: usize = 56usize

Source§

fn tlb_flush(vpn: Vpn)

Source§

fn tlb_flush_all()

Source§

fn is_user_table(&self) -> bool

Source§

fn activate(ppn: Ppn)

Source§

fn activating_table_ppn() -> Ppn

Source§

fn new() -> Self

Source§

fn from_ppn(ppn: Ppn) -> Self

Source§

fn new_as_kernel_table() -> Self

Source§

fn root_ppn(&self) -> Ppn

Source§

fn get_entry( &self, vpn: Vpn, level: usize, ) -> Option<(PageTableEntry, PageSize)>

Source§

fn translate(&self, vaddr: Vaddr) -> Option<Paddr>

Source§

fn map( &mut self, vpn: Vpn, ppn: Ppn, _page_size: PageSize, flags: UniversalPTEFlag, ) -> Result<(), PagingError>

Source§

fn unmap(&mut self, vpn: Vpn) -> Result<(), PagingError>

Source§

fn mvmap( &mut self, vpn: Vpn, target_ppn: Ppn, page_size: PageSize, flags: UniversalPTEFlag, ) -> Result<(), PagingError>

Source§

fn update_flags( &mut self, vpn: Vpn, flags: UniversalPTEFlag, ) -> Result<(), PagingError>

Source§

fn walk( &self, vpn: Vpn, ) -> Result<(Ppn, PageSize, UniversalPTEFlag), PagingError>

Auto Trait Implementations§

§

impl Freeze for PageTableInner

§

impl RefUnwindSafe for PageTableInner

§

impl Send for PageTableInner

§

impl Sync for PageTableInner

§

impl Unpin for PageTableInner

§

impl UnwindSafe for PageTableInner

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.