MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / drop

Method drop

os/src/task/id.rs:58–60  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

56
57impl Drop for PidHandle {
58 fn drop(&mut self) {
59 PID_ALLOCATOR.exclusive_access().dealloc(self.0);
60 }
61}
62
63/// Return (bottom, top) of a kernel stack in kernel space.

Callers

nothing calls this directly

Calls 6

kernel_stack_positionFunction · 0.85
exclusive_accessMethod · 0.80
dealloc_user_resMethod · 0.80
deallocMethod · 0.45
dealloc_tidMethod · 0.45

Tested by

no test coverage detected