Remove a memory chunk from this thread's page table which contains the given virtual address. Note: Doesn't free the frames or pagetables
(
&self,
address: VirtAddr
)
| 259 | /// |
| 260 | /// Note: Doesn't free the frames or pagetables |
| 261 | pub fn take_memory_chunk( |
| 262 | &self, |
| 263 | address: VirtAddr |
| 264 | ) -> Result<(PhysAddr, u16), usize> { |
| 265 | memory::get_page_chunk( |
| 266 | self.page_table_physaddr, |
| 267 | address, |
| 268 | true) // true => Remove from pagetable |
| 269 | } |
| 270 | |
| 271 | /// Add a memory chunk to this thread's page table |
| 272 | pub fn give_memory_chunk( |
no test coverage detected