#[repr(transparent)]pub struct PML4Entry(pub u64);
Expand description
A PML4 Entry consists of an address and a bunch of flags.
Tuple Fields§
§0: u64
Implementations§
Source§impl PML4Entry
impl PML4Entry
Sourcepub fn new(pml4: PAddr, flags: PML4Flags) -> PML4Entry
pub fn new(pml4: PAddr, flags: PML4Flags) -> PML4Entry
Creates a new PML4Entry.
§Arguments
pdpt
- The physical address of the pdpt table.flags
- Additional flags for the entry.
pub fn flags(self) -> PML4Flags
Sourcepub fn is_present(self) -> bool
pub fn is_present(self) -> bool
Is page present?
Sourcepub fn is_writeable(self) -> bool
pub fn is_writeable(self) -> bool
Read/write; if 0, writes may not be allowed to the 512-GByte region, controlled by this entry (see Section 4.6)
Sourcepub fn is_user_mode_allowed(self) -> bool
pub fn is_user_mode_allowed(self) -> bool
User/supervisor; if 0, user-mode accesses are not allowed to the 512-GByte region controlled by this entry.
Sourcepub fn is_page_write_through(self) -> bool
pub fn is_page_write_through(self) -> bool
Page-level write-through; indirectly determines the memory type used to access the page-directory-pointer table referenced by this entry.
Sourcepub fn is_page_level_cache_disabled(self) -> bool
pub fn is_page_level_cache_disabled(self) -> bool
Page-level cache disable; indirectly determines the memory type used to access the page-directory-pointer table referenced by this entry.
Sourcepub fn is_accessed(self) -> bool
pub fn is_accessed(self) -> bool
Accessed; indicates whether this entry has been used for linear-address translation.
Sourcepub fn is_instruction_fetching_disabled(self) -> bool
pub fn is_instruction_fetching_disabled(self) -> bool
If IA32_EFER.NXE = 1, execute-disable. If 1, instruction fetches are not allowed from the 512-GByte region.