Struct kernel_hal::PageTable [−][src]
Page Table
Implementations
impl PageTable
[src]
#[export_name = "hal_pt_current"]pub fn current() -> Self
[src]
Get current page table
#[export_name = "hal_pt_new"]pub fn new() -> Self
[src]
Create a new PageTable
.
Trait Implementations
impl PageTableTrait for PageTable
[src]
#[export_name = "hal_pt_map"]fn map(
&mut self,
_vaddr: VirtAddr,
_paddr: PhysAddr,
_flags: MMUFlags
) -> Result<()>
[src]
&mut self,
_vaddr: VirtAddr,
_paddr: PhysAddr,
_flags: MMUFlags
) -> Result<()>
Map the page of vaddr
to the frame of paddr
with flags
.
#[export_name = "hal_pt_unmap"]fn unmap(&mut self, _vaddr: VirtAddr) -> Result<()>
[src]
Unmap the page of vaddr
.
#[export_name = "hal_pt_protect"]fn protect(&mut self, _vaddr: VirtAddr, _flags: MMUFlags) -> Result<()>
[src]
Change the flags
of the page of vaddr
.
#[export_name = "hal_pt_query"]fn query(&mut self, _vaddr: VirtAddr) -> Result<PhysAddr>
[src]
Query the physical address which the page of vaddr
maps to.
#[export_name = "hal_pt_table_phys"]fn table_phys(&self) -> PhysAddr
[src]
Get the physical address of root page table.
#[export_name = "hal_pt_unmap_cont"]fn unmap_cont(&mut self, vaddr: VirtAddr, pages: usize) -> Result<()>
[src]
fn map_many(
&mut self,
vaddr: VirtAddr,
paddrs: &[PhysAddr],
flags: MMUFlags
) -> Result<()>
[src]
&mut self,
vaddr: VirtAddr,
paddrs: &[PhysAddr],
flags: MMUFlags
) -> Result<()>
fn map_cont(
&mut self,
vaddr: VirtAddr,
paddr: PhysAddr,
pages: usize,
flags: MMUFlags
) -> Result<()>
[src]
&mut self,
vaddr: VirtAddr,
paddr: PhysAddr,
pages: usize,
flags: MMUFlags
) -> Result<()>
Auto Trait Implementations
impl RefUnwindSafe for PageTable
impl Send for PageTable
impl Sync for PageTable
impl Unpin for PageTable
impl UnwindSafe for PageTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,