Trait tartan_arch::x86_common::paging::HybridPageTableEntry
source · pub trait HybridPageTableEntry: GenericPageTableEntry {
// Provided methods
fn is_page(&self) -> bool { ... }
fn set_is_page(&mut self, value: bool) { ... }
fn with_is_page(&mut self, value: bool) -> Self { ... }
fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>) { ... }
}
Expand description
A page table entry (any level) that either directly maps a page or points to another page table.
This trait provides an implementation for DirectPageTableEntry
, but its methods
are only applicable if is_page
is true.
Provided Methods§
sourcefn is_page(&self) -> bool
fn is_page(&self) -> bool
PS
: Indicates that this entry directly maps a page. Otherwise, this
is a pointer to a lower-level page table.
In 32-bit mode, requires ControlRegister4::page_size_extensions
. Always
applicable in 64-bit mode.
sourcefn set_is_page(&mut self, value: bool)
fn set_is_page(&mut self, value: bool)
PS
: Indicates that this entry directly maps a page. Otherwise, this
is a pointer to a lower-level page table.
In 32-bit mode, requires ControlRegister4::page_size_extensions
. Always
applicable in 64-bit mode.
sourcefn with_is_page(&mut self, value: bool) -> Self
fn with_is_page(&mut self, value: bool) -> Self
PS
: Indicates that this entry directly maps a page. Otherwise, this
is a pointer to a lower-level page table.
In 32-bit mode, requires ControlRegister4::page_size_extensions
. Always
applicable in 64-bit mode.
sourcefn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)
fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)
Print this object’s bitfield values. Helper method for Debug
implementations.