#[repr(C, align(4096))]pub struct PageDirectory {
    entries: [PdEntry; 512],
}Expand description
The Page Directory (L2): 512 entries, 4 KiB-aligned.
Fields§
§entries: [PdEntry; 512]Implementations§
Source§impl PageDirectory
 
impl PageDirectory
Sourcepub const fn get(&self, i: L2Index) -> PdEntry
 
pub const fn get(&self, i: L2Index) -> PdEntry
Read the entry at i.
Plain load; does not imply any TLB synchronization.
Sourcepub const fn set(&mut self, i: L2Index, e: PdEntry)
 
pub const fn set(&mut self, i: L2Index, e: PdEntry)
Write the entry at i.
Caller must handle any required TLB invalidation when changing active mappings.
Sourcepub const fn set_zero(&mut self, i: L2Index)
 
pub const fn set_zero(&mut self, i: L2Index)
Set the entry at i to PdEntry::zero.
Caller is responsible for necessary TLB invalidations if this affects an active address space.
Sourcepub const fn index_of(va: VirtualAddress) -> L2Index
 
pub const fn index_of(va: VirtualAddress) -> L2Index
Derive the PD index from a virtual address.
Auto Trait Implementations§
impl Freeze for PageDirectory
impl RefUnwindSafe for PageDirectory
impl Send for PageDirectory
impl Sync for PageDirectory
impl Unpin for PageDirectory
impl UnwindSafe for PageDirectory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more