Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
71
pub fn current_user_token() -> usize {
72
let task = current_task().unwrap();
73
task.get_user_token()
74
}
75
76
pub fn current_trap_cx() -> &'static mut TrapContext {
77
current_task()
Callers
6
trap_return
Function · 0.85
sys_exec
Function · 0.85
sys_write
Function · 0.85
sys_read
Function · 0.85
sys_open
Function · 0.85
sys_pipe
Function · 0.85
Calls
2
current_task
Function · 0.85
get_user_token
Method · 0.45
Tested by
no test coverage detected