pub enum FramePurpose {
PageTable,
KernelData,
UserData,
Custom(u32),
}Expand description
Describes the intended purpose of an allocated frame.
Purpose is written into FrameMeta::flags with Ordering::Release so
that any concurrent reader of the metadata (e.g. a TLB-shootdown handler
deciding whether a frame holds a page-table node) sees a consistent view.
Variants§
PageTable
Frame will hold a kernel page-table node (PML4/PDPT/PD/PT).
These frames MUST be zeroed : unzeroed page-table nodes are the primary source of non-deterministic RIP at Ring 3 transition.
KernelData
Frame belongs to kernel address-space (e.g. heap, stack, metadata).
UserData
Frame belongs to a user-space address-space (anonymous or file-backed).
Custom(u32)
Caller-managed; raw flags are passed through unchanged.
Implementations§
Source§impl FramePurpose
impl FramePurpose
Trait Implementations§
Source§impl Clone for FramePurpose
impl Clone for FramePurpose
Source§fn clone(&self) -> FramePurpose
fn clone(&self) -> FramePurpose
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FramePurpose
Source§impl Debug for FramePurpose
impl Debug for FramePurpose
impl Eq for FramePurpose
Source§impl PartialEq for FramePurpose
impl PartialEq for FramePurpose
Source§fn eq(&self, other: &FramePurpose) -> bool
fn eq(&self, other: &FramePurpose) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FramePurpose
Auto Trait Implementations§
impl Freeze for FramePurpose
impl RefUnwindSafe for FramePurpose
impl Send for FramePurpose
impl Sync for FramePurpose
impl Unpin for FramePurpose
impl UnsafeUnpin for FramePurpose
impl UnwindSafe for FramePurpose
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more