Struct os::mm::MemorySet

source · []
pub struct MemorySet {
    page_table: PageTable,
    areas: Vec<MapArea>,
}
Expand description

memory set structure, controls virtual-memory space

Fields

page_table: PageTableareas: Vec<MapArea>

Implementations

Create an empty MemorySet

Get pagetable root_ppn

Assume that no conflicts.

Remove MapArea that starts with start_vpn

Mention that trampoline is not collected by areas.

Without kernel stacks.

Include sections in elf and trampoline and TrapContext and user stack, also returns user_sp and entry point.

Clone a same MemorySet

Refresh TLB with sfence.vma

Translate throuth pagetable

Remove all MapArea

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.