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

Function insert_into_pid2process

os/src/task/manager.rs:53–55  ·  view source on GitHub ↗
(pid: usize, process: Arc<ProcessControlBlock>)

Source from the content-addressed store, hash-verified

51}
52
53pub fn insert_into_pid2process(pid: usize, process: Arc<ProcessControlBlock>) {
54 PID2PCB.exclusive_access().insert(pid, process);
55}
56
57pub fn remove_from_pid2process(pid: usize) {
58 let mut map = PID2PCB.exclusive_access();

Callers 2

newMethod · 0.85
forkMethod · 0.85

Calls 1

exclusive_accessMethod · 0.80

Tested by

no test coverage detected