pub trait GenericPageTableEntry: Bitfield<usize> {
Show 22 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§

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

R/W: Allows writes to this memory region.

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

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

PCD: Disables caching for this memory region.

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

Available on x86-64 only.

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

Requires ExtendedFeatureEnableRegister::no_execute.

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

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

R/W: Allows writes to this memory region.

R/W: Allows writes to this memory region.

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

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

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

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

PCD: Disables caching for this memory region.

PCD: Disables caching for this memory region.

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

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

Available on x86-64 only.

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

Requires ExtendedFeatureEnableRegister::no_execute.

Available on x86-64 only.

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

Requires ExtendedFeatureEnableRegister::no_execute.

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

Implementors§