Struct page_table::MmuFlags
source · [−]Expand description
MMU 属性。
MMU 属性一定完全包含在页表项中,所以独立的 MMU 属性实现为一个无法获取地址的页表项。
Tuple Fields
0: usizeImplementations
sourceimpl<Meta: MmuMeta> MmuFlags<Meta>
impl<Meta: MmuMeta> MmuFlags<Meta>
pub const ZERO: Self = _
pub const fn new(value: usize) -> Self
pub fn is_leaf(self) -> bool
pub fn is_huge(self, level: usize) -> bool
pub fn is_valid(self) -> bool
pub fn is_readable(self) -> bool
pub fn is_writable(self) -> bool
pub fn is_executable(self) -> bool
pub fn is_user(self) -> bool
pub fn is_global(self) -> bool
pub fn is_accessed(self) -> bool
pub fn is_dirty(self) -> bool
pub fn build_pte(self, ppn: PPN) -> Pte<Meta>
Trait Implementations
impl<Meta: Copy + MmuMeta> Copy for MmuFlags<Meta>
impl<Meta: Eq + MmuMeta> Eq for MmuFlags<Meta>
impl<Meta: MmuMeta> StructuralEq for MmuFlags<Meta>
impl<Meta: MmuMeta> StructuralPartialEq for MmuFlags<Meta>
Auto Trait Implementations
impl<Meta> RefUnwindSafe for MmuFlags<Meta> where
Meta: RefUnwindSafe,
impl<Meta> Send for MmuFlags<Meta> where
Meta: Send,
impl<Meta> Sync for MmuFlags<Meta> where
Meta: Sync,
impl<Meta> Unpin for MmuFlags<Meta> where
Meta: Unpin,
impl<Meta> UnwindSafe for MmuFlags<Meta> where
Meta: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more