Get the physical address and page table level of the memory chunk containing the given virtual address
(
&self,
address: VirtAddr
)
| 245 | /// Get the physical address and page table level of the memory |
| 246 | /// chunk containing the given virtual address |
| 247 | pub fn memory_chunk( |
| 248 | &self, |
| 249 | address: VirtAddr |
| 250 | ) -> Result<(PhysAddr, u16), usize> { |
| 251 | memory::get_page_chunk( |
| 252 | self.page_table_physaddr, |
| 253 | address, |
| 254 | false) // false => Don't remove from pagetable |
| 255 | } |
| 256 | |
| 257 | /// Remove a memory chunk from this thread's page table which |
| 258 | /// contains the given virtual address. |
no test coverage detected