MCPcopy 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
67pub fn current_process() -> Arc<ProcessControlBlock> {
68 current_task().unwrap().process.upgrade().unwrap()
69}
70
71pub fn current_user_token() -> usize {
72 let task = current_task().unwrap();

Callers 15

check_signals_of_currentFunction · 0.85
current_add_signalFunction · 0.85
sys_forkFunction · 0.85
sys_execFunction · 0.85
sys_waitpidFunction · 0.85
sys_framebufferFunction · 0.85
sys_writeFunction · 0.85
sys_readFunction · 0.85
sys_openFunction · 0.85
sys_closeFunction · 0.85
sys_pipeFunction · 0.85
sys_dupFunction · 0.85

Calls 1

current_taskFunction · 0.85

Tested by

no test coverage detected