MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / memory_chunk

Method memory_chunk

kernel/src/process.rs:247–255  ·  view source on GitHub ↗

Get the physical address and page table level of the memory chunk containing the given virtual address

(
        &self,
        address: VirtAddr
    )

Source from the content-addressed store, hash-verified

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.

Callers 1

from_valuesMethod · 0.80

Calls 1

get_page_chunkFunction · 0.85

Tested by

no test coverage detected