Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
49
pub const IDLE_PID: usize = 0;
50
51
pub struct PidHandle(pub usize);
52
53
pub fn pid_alloc() -> PidHandle {
54
PidHandle(PID_ALLOCATOR.exclusive_access().alloc())
Callers
1
pid_alloc
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected