Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ remove_from_pid2process
Function
remove_from_pid2process
os/src/task/manager.rs:57–62 ·
view source on GitHub ↗
(pid: usize)
Source
from the content-addressed store, hash-verified
55
}
56
57
pub fn remove_from_pid2process(pid: usize) {
58
let mut map = PID2PCB.exclusive_access();
59
if map.remove(&pid).is_none() {
60
panic!(
"cannot find pid {} in pid2task!"
, pid);
61
}
62
}
Callers
1
exit_current_and_run_next
Function · 0.85
Calls
1
exclusive_access
Method · 0.80
Tested by
no test coverage detected