[−][src]Struct x86::bits64::paging::PTEntry
A PT Entry consists of an address and a bunch of flags.
Methods
impl PTEntry
[src]
pub fn new(page: PAddr, flags: PTFlags) -> PTEntry
[src]
Creates a new PTEntry.
Arguments
page
- The physical address of the backing 4 KiB page.flags
- Additional flags for the entry.
pub fn address(self) -> PAddr
[src]
Retrieves the physical address in this entry.
pub fn flags(self) -> PTFlags
[src]
Returns the flags corresponding to this entry.
pub fn is_present(self) -> bool
[src]
Present; must be 1 to map a 4-KByte page or reference a page table.
pub fn is_writeable(self) -> bool
[src]
Read/write; if 0, writes may not be allowed to the 4-KByte region controlled by this entry
pub fn is_user_mode_allowed(self) -> bool
[src]
User/supervisor; user-mode accesses are not allowed to the 4-KByte region controlled by this entry.
pub fn is_page_write_through(self) -> bool
[src]
Page-level write-through.
pub fn is_page_level_cache_disabled(self) -> bool
[src]
Page-level cache disable.
pub fn is_accessed(self) -> bool
[src]
Accessed; if PS set indicates whether software has accessed the 4-KByte page else indicates whether this entry has been used for linear-address translation.
pub fn is_dirty(self) -> bool
[src]
Dirty; if PD_PS set indicates whether software has written to the 4-KByte page referenced by this entry else ignored.
pub fn is_global(self) -> bool
[src]
Global; if PS && CR4.PGE = 1, determines whether the translation is global; ignored otherwise if not PS this is ignored.
pub fn is_instruction_fetching_disabled(self) -> bool
[src]
If IA32_EFER.NXE = 1, execute-disable. If 1, instruction fetches are not allowed from the 4-KByte region.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
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>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
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>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,