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

Class PidHandle

os/src/task/id.rs:51–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49pub const IDLE_PID: usize = 0;
50
51pub struct PidHandle(pub usize);
52
53pub fn pid_alloc() -> PidHandle {
54 PidHandle(PID_ALLOCATOR.exclusive_access().alloc())

Callers 1

pid_allocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected