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

Function current_user_token

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

Source from the content-addressed store, hash-verified

69}
70
71pub fn current_user_token() -> usize {
72 let task = current_task().unwrap();
73 task.get_user_token()
74}
75
76pub fn current_trap_cx() -> &'static mut TrapContext {
77 current_task()

Callers 6

trap_returnFunction · 0.85
sys_execFunction · 0.85
sys_writeFunction · 0.85
sys_readFunction · 0.85
sys_openFunction · 0.85
sys_pipeFunction · 0.85

Calls 2

current_taskFunction · 0.85
get_user_tokenMethod · 0.45

Tested by

no test coverage detected