Trait tartan_arch::x86_common::paging::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<'_, '_>) { ... }
}
Expand description
An entry in a page table at any level.
Provided Methods§
sourcefn present(&self) -> bool
fn present(&self) -> bool
P
: Indicates that this entry is mapped. Otherwise the whole entry is
ignored.
sourcefn user(&self) -> bool
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.
sourcefn write_through(&self) -> bool
fn write_through(&self) -> bool
PWT
: Enables write-through caching for this memory region.
sourcefn cache_disabled(&self) -> bool
fn cache_disabled(&self) -> bool
PCD
: Disables caching for this memory region.
sourcefn accessed(&self) -> bool
fn accessed(&self) -> bool
A
: Set by the processor when an instruction accesses the memory region.
sourcefn no_execute(&self) -> bool
Available on x86-64 only.
fn no_execute(&self) -> bool
XD
/NX
: Prevent the processor from executing any instructions in this
memory region.
sourcefn set_present(&mut self, value: bool)
fn set_present(&mut self, value: bool)
P
: Indicates that this entry is mapped. Otherwise the whole entry is
ignored.
sourcefn with_present(&mut self, value: bool) -> Self
fn with_present(&mut self, value: bool) -> Self
P
: Indicates that this entry is mapped. Otherwise the whole entry is
ignored.
sourcefn set_writable(&mut self, value: bool)
fn set_writable(&mut self, value: bool)
R/W
: Allows writes to this memory region.
sourcefn with_writable(&mut self, value: bool) -> Self
fn with_writable(&mut self, value: bool) -> Self
R/W
: Allows writes to this memory region.
sourcefn set_user(&mut self, value: bool)
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.
sourcefn with_user(&mut self, value: bool) -> Self
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.
sourcefn set_write_through(&mut self, value: bool)
fn set_write_through(&mut self, value: bool)
PWT
: Enables write-through caching for this memory region.
sourcefn with_write_through(&mut self, value: bool) -> Self
fn with_write_through(&mut self, value: bool) -> Self
PWT
: Enables write-through caching for this memory region.
sourcefn set_cache_disabled(&mut self, value: bool)
fn set_cache_disabled(&mut self, value: bool)
PCD
: Disables caching for this memory region.
sourcefn with_cache_disabled(&mut self, value: bool) -> Self
fn with_cache_disabled(&mut self, value: bool) -> Self
PCD
: Disables caching for this memory region.
sourcefn set_accessed(&mut self, value: bool)
fn set_accessed(&mut self, value: bool)
A
: Set by the processor when an instruction accesses the memory region.
sourcefn with_accessed(&mut self, value: bool) -> Self
fn with_accessed(&mut self, value: bool) -> Self
A
: Set by the processor when an instruction accesses the memory region.
sourcefn set_no_execute(&mut self, value: bool)
Available on x86-64 only.
fn set_no_execute(&mut self, value: bool)
XD
/NX
: Prevent the processor from executing any instructions in this
memory region.
sourcefn with_no_execute(&mut self, value: bool) -> Self
Available on x86-64 only.
fn with_no_execute(&mut self, value: bool) -> Self
XD
/NX
: Prevent the processor from executing any instructions in this
memory region.
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.