Trait DirectPageTableEntry

Source
pub trait DirectPageTableEntry: GenericPageTableEntry {
Show 13 methods // Provided methods fn dirty(&self) -> bool { ... } fn attribute_table(&self) -> bool { ... } fn global(&self) -> bool { ... } fn protection_key(&self) -> u8 { ... } fn set_dirty(&mut self, value: bool) { ... } fn with_dirty(&mut self, value: bool) -> Self { ... } fn set_attribute_table(&mut self, value: bool) { ... } fn with_attribute_table(&mut self, value: bool) -> Self { ... } fn set_global(&mut self, value: bool) { ... } fn with_global(&mut self, value: bool) -> Self { ... } fn set_protection_key(&mut self, value: u8) { ... } fn with_protection_key(&self, value: u8) -> Self { ... } fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>) { ... }
}
Available on x86 or x86-64 only.
Expand description

An page table entry (any level) that directly maps a page.

Provided Methods§

Source

fn dirty(&self) -> bool

D: Set by the processor when an instruction modifies the memory region.

Source

fn attribute_table(&self) -> bool

PAT: Used to associate this page with a page attribute table.

In 32-bit mode, requires BasicFeatures::page_attribute_table. Always applicable in 64-bit mode.

Source

fn global(&self) -> bool

G: Indicates that this is a global page shared by all task contexts.

Requires ControlRegister4::global_pages.

Source

fn protection_key(&self) -> u8

Available on x86-64 only.

The protection key that applies to this memory region.

Requires ControlRegister4::user_protection_keys or ControlRegister4::supervisor_protection_keys.

Source

fn set_dirty(&mut self, value: bool)

D: Set by the processor when an instruction modifies the memory region.

Source

fn with_dirty(&mut self, value: bool) -> Self

D: Set by the processor when an instruction modifies the memory region.

Source

fn set_attribute_table(&mut self, value: bool)

PAT: Used to associate this page with a page attribute table.

In 32-bit mode, requires BasicFeatures::page_attribute_table. Always applicable in 64-bit mode.

Source

fn with_attribute_table(&mut self, value: bool) -> Self

PAT: Used to associate this page with a page attribute table.

In 32-bit mode, requires BasicFeatures::page_attribute_table. Always applicable in 64-bit mode.

Source

fn set_global(&mut self, value: bool)

G: Indicates that this is a global page shared by all task contexts.

Requires ControlRegister4::global_pages.

Source

fn with_global(&mut self, value: bool) -> Self

G: Indicates that this is a global page shared by all task contexts.

Requires ControlRegister4::global_pages.

Source

fn set_protection_key(&mut self, value: u8)

Available on x86-64 only.

The protection key that applies to this memory region.

Requires ControlRegister4::user_protection_keys or ControlRegister4::supervisor_protection_keys.

Source

fn with_protection_key(&self, value: u8) -> Self

Available on x86-64 only.

The protection key that applies to this memory region.

Requires ControlRegister4::user_protection_keys or ControlRegister4::supervisor_protection_keys.

Source

fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)

Print this object’s bitfield values. Helper method for Debug implementations.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§