#[repr(transparent)]pub struct Ty(pub u8);Expand description
The type of memory being mapped.
In certain build configurations this will be stored as metadata with each relevant page table entry, and will be shown in relevant log entries.
Constants are provided for typical memory buffer uses and will be printed by name in logs, but any custom value can be used and will have it’s raw value printed.
Tuple Fields§
§0: u8Implementations§
Source§impl Ty
impl Ty
Sourcepub const KERNEL_DATA: Ty
pub const KERNEL_DATA: Ty
Kernel non-executable data.
Sourcepub const KERNEL_CODE: Ty
pub const KERNEL_CODE: Ty
Kernel executable code.
Sourcepub const KERNEL_TLS: Ty
pub const KERNEL_TLS: Ty
Kernel thread-local data.
Sourcepub const KERNEL_STACK: Ty
pub const KERNEL_STACK: Ty
Kernel thread stack.
Sourcepub const KERNEL_OTHER: Ty
pub const KERNEL_OTHER: Ty
Other kernel data.
Sourcepub const MEM_MAP: Ty
pub const MEM_MAP: Ty
Memory used for the page map region.
Sourcepub const LOADER_CODE: Ty
pub const LOADER_CODE: Ty
Bootloader executable code.
Sourcepub const LOADER_DATA: Ty
pub const LOADER_DATA: Ty
Bootloader non-executable data.
Sourcepub const USER_STACK: Ty
pub const USER_STACK: Ty
Userspace thread stack.
Sourcepub const PAGE_TABLE: Ty
pub const PAGE_TABLE: Ty
Page table memory.
Sourcepub const USER_PACKET_BUFFER: Ty
pub const USER_PACKET_BUFFER: Ty
Memory used to buffer syscall data between processes.
Sourcepub const SHADOW_MEM: Ty
pub const SHADOW_MEM: Ty
Kasan shadow memory.
Trait Implementations§
impl Copy for Ty
impl Eq for Ty
impl StructuralPartialEq for Ty
Auto Trait Implementations§
impl Freeze for Ty
impl RefUnwindSafe for Ty
impl Send for Ty
impl Sync for Ty
impl Unpin for Ty
impl UnsafeUnpin for Ty
impl UnwindSafe for Ty
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more