pub struct PageTable {
    root_ppn: PhysPageNum,
    frames: Vec<FrameTracker>,
}
Expand description

page table structure

Fields

root_ppn: PhysPageNumframes: Vec<FrameTracker>

Implementations

Assume that it won’t oom when creating/mapping.

Create a new page table

Temporarily used to get arguments from user space.

Find PageTableEntry by VirtPageNum, create a frame for a 4KB page table if not exist

Find PageTableEntry by VirtPageNum

set the map between virtual page number and physical page number

remove the map between virtual page number and physical page number

get the page table entry from the virtual page number

get the physical address from the virtual address

get the token from the page table

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.