#[repr(C)]pub struct PageTableEntry {
pub bits: usize,
}Expand description
Fields§
§bits: usizeImplementations§
Source§impl PageTableEntry
impl PageTableEntry
Sourcepub fn new(phy_page: PhysicalPageNumber, flags: PTEFlags) -> Self
pub fn new(phy_page: PhysicalPageNumber, flags: PTEFlags) -> Self
创建一个新的页表项
根据给定的物理页号和标志位创建页表项
Sourcepub fn executable(&self) -> bool
pub fn executable(&self) -> bool
判断页表项是否可执行
检查页表项的可执行位是否被设置
Trait Implementations§
Source§impl Clone for PageTableEntry
impl Clone for PageTableEntry
Source§fn clone(&self) -> PageTableEntry
fn clone(&self) -> PageTableEntry
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 PageTableEntry
impl Debug for PageTableEntry
Source§impl From<&PageTableEntry> for PTEFlags
impl From<&PageTableEntry> for PTEFlags
Source§fn from(pte: &PageTableEntry) -> Self
fn from(pte: &PageTableEntry) -> Self
从页表项创建标志位
根据页表项的位字段创建标志位
Source§impl From<&PageTableEntry> for PhysicalPageNumber
impl From<&PageTableEntry> for PhysicalPageNumber
Source§fn from(pte: &PageTableEntry) -> Self
fn from(pte: &PageTableEntry) -> Self
从页表项创建物理页号
根据页表项的位字段创建物理页号
Source§impl From<&mut PageTableEntry> for PhysicalPageNumber
impl From<&mut PageTableEntry> for PhysicalPageNumber
Source§fn from(pte: &mut PageTableEntry) -> Self
fn from(pte: &mut PageTableEntry) -> Self
从可变页表项创建物理页号
根据页表项的位字段创建物理页号
impl Copy for PageTableEntry
Auto Trait Implementations§
impl Freeze for PageTableEntry
impl RefUnwindSafe for PageTableEntry
impl Send for PageTableEntry
impl Sync for PageTableEntry
impl Unpin for PageTableEntry
impl UnwindSafe for PageTableEntry
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