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

Method take_memory_chunk

kernel/src/process.rs:261–269  ·  view source on GitHub ↗

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
    )

Source from the content-addressed store, hash-verified

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(

Callers 2

kernel_thread_mainFunction · 0.80
from_valuesMethod · 0.80

Calls 1

get_page_chunkFunction · 0.85

Tested by

no test coverage detected