Trait GenericPageTableEntry

Source
pub trait GenericPageTableEntry: Bitfield<usize> {
Show 22 methods // Provided methods fn present(&self) -> bool { ... } fn writable(&self) -> bool { ... } fn user(&self) -> bool { ... } fn write_through(&self) -> bool { ... } fn cache_disabled(&self) -> bool { ... } fn accessed(&self) -> bool { ... } fn no_execute(&self) -> bool { ... } fn set_present(&mut self, value: bool) { ... } fn with_present(&mut self, value: bool) -> Self { ... } fn set_writable(&mut self, value: bool) { ... } fn with_writable(&mut self, value: bool) -> Self { ... } fn set_user(&mut self, value: bool) { ... } fn with_user(&mut self, value: bool) -> Self { ... } fn set_write_through(&mut self, value: bool) { ... } fn with_write_through(&mut self, value: bool) -> Self { ... } fn set_cache_disabled(&mut self, value: bool) { ... } fn with_cache_disabled(&mut self, value: bool) -> Self { ... } fn set_accessed(&mut self, value: bool) { ... } fn with_accessed(&mut self, value: bool) -> Self { ... } fn set_no_execute(&mut self, value: bool) { ... } fn with_no_execute(&mut self, value: bool) -> Self { ... } fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>) { ... }
}
Available on x86 or x86-64 only.
Expand description

An entry in a page table at any level.

Provided Methods§

Source

fn present(&self) -> bool

P: Indicates that this entry is mapped. Otherwise the whole entry is ignored.

Source

fn writable(&self) -> bool

R/W: Allows writes to this memory region.

Source

fn user(&self) -> bool

U/S: Allows access to this memory region from permission level 3. Otherwise, it is only accessible from levels 0–2.

Source

fn write_through(&self) -> bool

PWT: Enables write-through caching for this memory region.

Source

fn cache_disabled(&self) -> bool

PCD: Disables caching for this memory region.

Source

fn accessed(&self) -> bool

A: Set by the processor when an instruction accesses the memory region.

Source

fn no_execute(&self) -> bool

Available on x86-64 only.

XD/NX: Prevent the processor from executing any instructions in this memory region.

Requires ExtendedFeatureEnableRegister::no_execute.

Source

fn set_present(&mut self, value: bool)

P: Indicates that this entry is mapped. Otherwise the whole entry is ignored.

Source

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

P: Indicates that this entry is mapped. Otherwise the whole entry is ignored.

Source

fn set_writable(&mut self, value: bool)

R/W: Allows writes to this memory region.

Source

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

R/W: Allows writes to this memory region.

Source

fn set_user(&mut self, value: bool)

U/S: Allows access to this memory region from permission level 3. Otherwise, it is only accessible from levels 0–2.

Source

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

U/S: Allows access to this memory region from permission level 3. Otherwise, it is only accessible from levels 0–2.

Source

fn set_write_through(&mut self, value: bool)

PWT: Enables write-through caching for this memory region.

Source

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

PWT: Enables write-through caching for this memory region.

Source

fn set_cache_disabled(&mut self, value: bool)

PCD: Disables caching for this memory region.

Source

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

PCD: Disables caching for this memory region.

Source

fn set_accessed(&mut self, value: bool)

A: Set by the processor when an instruction accesses the memory region.

Source

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

A: Set by the processor when an instruction accesses the memory region.

Source

fn set_no_execute(&mut self, value: bool)

Available on x86-64 only.

XD/NX: Prevent the processor from executing any instructions in this memory region.

Requires ExtendedFeatureEnableRegister::no_execute.

Source

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

Available on x86-64 only.

XD/NX: Prevent the processor from executing any instructions in this memory region.

Requires ExtendedFeatureEnableRegister::no_execute.

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§