Struct kernel::mem::page_table::PageTableEntry
source · #[repr(C)]pub struct PageTableEntry {
bits: usize,
}
Fields§
§bits: usize
Implementations§
source§impl PageTableEntry
impl PageTableEntry
pub fn new(frame_number: FrameNumber, flag: PTEFlags) -> Self
pub fn frame_number(&self) -> FrameNumber
pub fn flags(&self) -> PTEFlags
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_cow(&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 Default for PageTableEntry
impl Default for PageTableEntry
source§fn default() -> PageTableEntry
fn default() -> PageTableEntry
Returns the “default value” for a type. Read more