pub struct PageTable { /* private fields */ }Implementations§
Source§impl PageTable
impl PageTable
pub fn new() -> PageTable
Sourcepub fn set_base(
&mut self,
first_page: usize,
last_page: usize,
handler: Handler,
)
pub fn set_base( &mut self, first_page: usize, last_page: usize, handler: Handler, )
The board’s own map. Replaces whatever is there, claims included.
Sourcepub fn claim(
&mut self,
first_page: usize,
last_page: usize,
handler: Handler,
) -> Result<(), String>
pub fn claim( &mut self, first_page: usize, last_page: usize, handler: Handler, ) -> Result<(), String>
A device takes a range of pages from the base map.
Sourcepub fn release(&mut self, first_page: usize, last_page: usize, handler: Handler)
pub fn release(&mut self, first_page: usize, last_page: usize, handler: Handler)
Give pages back to the base map, where handler still holds them.
pub fn handler(&self, address: u32) -> Handler
Trait Implementations§
impl Eq for PageTable
impl StructuralPartialEq for PageTable
Auto Trait Implementations§
impl Freeze for PageTable
impl RefUnwindSafe for PageTable
impl Send for PageTable
impl Sync for PageTable
impl Unpin for PageTable
impl UnwindSafe for PageTable
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