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

Function pid_alloc

os/src/task/id.rs:53–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51pub struct PidHandle(pub usize);
52
53pub fn pid_alloc() -> PidHandle {
54 PidHandle(PID_ALLOCATOR.exclusive_access().alloc())
55}
56
57impl Drop for PidHandle {
58 fn drop(&mut self) {

Callers 2

newMethod · 0.85
forkMethod · 0.85

Calls 3

PidHandleClass · 0.85
exclusive_accessMethod · 0.80
allocMethod · 0.45

Tested by

no test coverage detected