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

Function current_task

os/src/task/processor.rs:63–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63pub fn current_task() -> Option<Arc<TaskControlBlock>> {
64 PROCESSOR.exclusive_access().current()
65}
66
67pub fn current_process() -> Arc<ProcessControlBlock> {
68 current_task().unwrap().process.upgrade().unwrap()

Callers 14

current_processFunction · 0.85
current_user_tokenFunction · 0.85
current_trap_cxFunction · 0.85
current_trap_cx_user_vaFunction · 0.85
current_kstack_topFunction · 0.85
sys_getpidFunction · 0.85
sys_thread_createFunction · 0.85
sys_gettidFunction · 0.85
sys_waittidFunction · 0.85
sys_sleepFunction · 0.85
lockMethod · 0.85
wait_no_schedMethod · 0.85

Calls 2

currentMethod · 0.80
exclusive_accessMethod · 0.80

Tested by

no test coverage detected