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

Method drop

kernel/src/process.rs:81–87  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

79
80impl Drop for Process {
81 fn drop(&mut self) {
82 // Check if the page table is currently active
83 if self.page_table_physaddr == memory::active_pagetable_physaddr() {
84 memory::switch_to_kernel_pagetable();
85 }
86 memory::free_user_pagetables(self.page_table_physaddr);
87 }
88}
89
90impl Process {

Callers

nothing calls this directly

Calls 4

free_user_pagetablesFunction · 0.85
free_user_stackFunction · 0.85

Tested by

no test coverage detected