Identity map the given frame with the provided flags. The `FrameAllocator` is used to create new page tables if needed.
(&mut self, frame: Frame, flags: EntryFlags, allocator: &mut A)
| 93 | /// Identity map the given frame with the provided flags. |
| 94 | /// The `FrameAllocator` is used to create new page tables if needed. |
| 95 | pub fn identity_map<A>(&mut self, frame: Frame, flags: EntryFlags, allocator: &mut A) |
| 96 | where A: FrameAllocator |
| 97 | { |
| 98 | let page = Page::containing_address(frame.start_address()); |
| 99 | self.map_to(page, frame, flags, allocator) |
| 100 | } |
| 101 | |
| 102 | /// Unmaps the given page and adds all freed frames to the given `FrameAllocator`. |
| 103 | pub fn unmap<A>(&mut self, page: Page, allocator: &mut A) |
no test coverage detected