[][src]Trait sunrise_kernel::paging::hierarchical_table::HierarchicalEntry

pub trait HierarchicalEntry {
    type EntryFlagsType: From<MappingAccessRights>;
    fn is_unused(&self) -> bool;
fn set_unused(&mut self) -> PageState<PhysicalAddress>;
fn is_guard(&self) -> bool;
fn flags(&self) -> Self::EntryFlagsType;
fn pointed_frame(&self) -> PageState<PhysicalAddress>;
fn set(&mut self, frame: PhysicalAddress, flags: Self::EntryFlagsType);
fn set_guard(&mut self); }

A hierarchical paging is composed of entries. All entries implements the following trait

Associated Types

type EntryFlagsType: From<MappingAccessRights>

An entry comports some flags. They are often represented by a structure.

Loading content...

Required methods

fn is_unused(&self) -> bool

Is the entry unused ?

fn set_unused(&mut self) -> PageState<PhysicalAddress>

Clear the entry

fn is_guard(&self) -> bool

Is the entry a page guard ?

fn flags(&self) -> Self::EntryFlagsType

Get the current entry flags

fn pointed_frame(&self) -> PageState<PhysicalAddress>

Get the associated physical address, if available

fn set(&mut self, frame: PhysicalAddress, flags: Self::EntryFlagsType)

Sets the entry

fn set_guard(&mut self)

Make this entry a page guard

Loading content...

Implementors

impl HierarchicalEntry for I386Entry[src]

type EntryFlagsType = I386EntryFlags

fn is_unused(&self) -> bool[src]

Is the entry unused ?

fn set_unused(&mut self) -> PageState<PhysicalAddress>[src]

Clear the entry

fn is_guard(&self) -> bool[src]

Is the entry a page guard ?

fn flags(&self) -> I386EntryFlags[src]

Get the current entry flags

fn pointed_frame(&self) -> PageState<PhysicalAddress>[src]

Get the associated physical address, if available

fn set(&mut self, frame_phys_addr: PhysicalAddress, flags: I386EntryFlags)[src]

Sets the entry

fn set_guard(&mut self)[src]

Make this entry a page guard

Loading content...