Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ current_process
Function
current_process
os/src/task/processor.rs:67–69 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
65
}
66
67
pub fn current_process() -> Arc<ProcessControlBlock> {
68
current_task().unwrap().process.upgrade().unwrap()
69
}
70
71
pub fn current_user_token() -> usize {
72
let task = current_task().unwrap();
Callers
15
check_signals_of_current
Function · 0.85
current_add_signal
Function · 0.85
sys_fork
Function · 0.85
sys_exec
Function · 0.85
sys_waitpid
Function · 0.85
sys_framebuffer
Function · 0.85
sys_write
Function · 0.85
sys_read
Function · 0.85
sys_open
Function · 0.85
sys_close
Function · 0.85
sys_pipe
Function · 0.85
sys_dup
Function · 0.85
Calls
1
current_task
Function · 0.85
Tested by
no test coverage detected