Struct tartan_arch::x86_common::paging::Level1PageTableEntry
source · pub struct Level1PageTableEntry(/* private fields */);
Available on x86 or x86-64 only.
Expand description
Bottom-level page table entry that maps a single 4KB page.
Trait Implementations§
source§impl Bitfield<usize> for Level1PageTableEntry
impl Bitfield<usize> for Level1PageTableEntry
source§impl Clone for Level1PageTableEntry
impl Clone for Level1PageTableEntry
source§fn clone(&self) -> Level1PageTableEntry
fn clone(&self) -> Level1PageTableEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Level1PageTableEntry
impl Debug for Level1PageTableEntry
source§impl Default for Level1PageTableEntry
impl Default for Level1PageTableEntry
source§fn default() -> Level1PageTableEntry
fn default() -> Level1PageTableEntry
Returns the “default value” for a type. Read more
source§impl DirectPageTableEntry for Level1PageTableEntry
impl DirectPageTableEntry for Level1PageTableEntry
source§fn dirty(&self) -> bool
fn dirty(&self) -> bool
D
: Set by the processor when an instruction modifies the memory region.source§fn attribute_table(&self) -> bool
fn attribute_table(&self) -> bool
PAT
: Used to associate this page with a page attribute table. Read moresource§fn global(&self) -> bool
fn global(&self) -> bool
G
: Indicates that this is a global page shared by all task contexts. Read moresource§fn protection_key(&self) -> u8
fn protection_key(&self) -> u8
Available on x86-64 only.
The protection key that applies to this memory region. Read more
source§fn set_dirty(&mut self, value: bool)
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
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)
fn set_attribute_table(&mut self, value: bool)
PAT
: Used to associate this page with a page attribute table. Read moresource§fn with_attribute_table(&mut self, value: bool) -> Self
fn with_attribute_table(&mut self, value: bool) -> Self
PAT
: Used to associate this page with a page attribute table. Read moresource§fn set_global(&mut self, value: bool)
fn set_global(&mut self, value: bool)
G
: Indicates that this is a global page shared by all task contexts. Read moresource§fn with_global(&mut self, value: bool) -> Self
fn with_global(&mut self, value: bool) -> Self
G
: Indicates that this is a global page shared by all task contexts. Read moresource§fn set_protection_key(&mut self, value: u8)
fn set_protection_key(&mut self, value: u8)
Available on x86-64 only.
The protection key that applies to this memory region. Read more
source§fn with_protection_key(&self, value: u8) -> Self
fn with_protection_key(&self, value: u8) -> Self
Available on x86-64 only.
The protection key that applies to this memory region. Read more
source§fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)
fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)
Print this object’s bitfield values. Helper method for
Debug
implementations.source§impl From<Level1PageTableEntry> for usize
impl From<Level1PageTableEntry> for usize
source§fn from(val: Level1PageTableEntry) -> Self
fn from(val: Level1PageTableEntry) -> Self
Converts to this type from the input type.
source§impl From<usize> for Level1PageTableEntry
impl From<usize> for Level1PageTableEntry
source§impl GenericPageTableEntry for Level1PageTableEntry
impl GenericPageTableEntry for Level1PageTableEntry
source§fn present(&self) -> bool
fn present(&self) -> bool
P
: Indicates that this entry is mapped. Otherwise the whole entry is
ignored.source§fn 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.source§fn write_through(&self) -> bool
fn write_through(&self) -> bool
PWT
: Enables write-through caching for this memory region.source§fn cache_disabled(&self) -> bool
fn cache_disabled(&self) -> bool
PCD
: Disables caching for this memory region.source§fn accessed(&self) -> bool
fn accessed(&self) -> bool
A
: Set by the processor when an instruction accesses the memory region.source§fn no_execute(&self) -> bool
fn no_execute(&self) -> bool
Available on x86-64 only.
source§fn 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.source§fn 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.source§fn set_writable(&mut self, value: bool)
fn set_writable(&mut self, value: bool)
R/W
: Allows writes to this memory region.source§fn with_writable(&mut self, value: bool) -> Self
fn with_writable(&mut self, value: bool) -> Self
R/W
: Allows writes to this memory region.source§fn 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.source§fn 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.source§fn set_write_through(&mut self, value: bool)
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
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)
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
fn with_cache_disabled(&mut self, value: bool) -> Self
PCD
: Disables caching for this memory region.source§fn 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.source§fn 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.source§fn set_no_execute(&mut self, value: bool)
fn set_no_execute(&mut self, value: bool)
Available on x86-64 only.
source§fn with_no_execute(&mut self, value: bool) -> Self
fn with_no_execute(&mut self, value: bool) -> Self
Available on x86-64 only.
source§fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)
fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)
Print this object’s bitfield values. Helper method for
Debug
implementations.source§impl PartialEq for Level1PageTableEntry
impl PartialEq for Level1PageTableEntry
impl Copy for Level1PageTableEntry
impl Eq for Level1PageTableEntry
impl StructuralPartialEq for Level1PageTableEntry
Auto Trait Implementations§
impl Freeze for Level1PageTableEntry
impl RefUnwindSafe for Level1PageTableEntry
impl Send for Level1PageTableEntry
impl Sync for Level1PageTableEntry
impl Unpin for Level1PageTableEntry
impl UnwindSafe for Level1PageTableEntry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)