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.

Object Safety§

This trait is not object safe.

Implementors§