Struct kernel::common::paging::Page [] [src]

pub struct Page {
    // some fields omitted
}
[]

A memory page

Methods

impl Page

unsafe fn init()[]

Initialize the memory page

fn new(virtual_address: usize) -> Self[]

Create a new memory page from a virtual address

fn phys_addr(&self) -> usize[]

Get the current physical address

fn virt_addr(&self) -> usize[]

Get the current virtual address

unsafe fn map(&mut self, physical_address: usize)[]

Map the memory page to a given physical memory address

unsafe fn map_identity(&mut self)[]

Map to the virtual address

unsafe fn unmap(&mut self)[]

Unmap the memory page