Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
51
pub struct PidHandle(pub usize);
52
53
pub fn pid_alloc() -> PidHandle {
54
PidHandle(PID_ALLOCATOR.exclusive_access().alloc())
55
}
56
57
impl Drop for PidHandle {
58
fn drop(&mut self) {
Callers
2
new
Method · 0.85
fork
Method · 0.85
Calls
3
PidHandle
Class · 0.85
exclusive_access
Method · 0.80
alloc
Method · 0.45
Tested by
no test coverage detected