Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ get_trap_cx
Method
get_trap_cx
os/src/task/task.rs:39–41 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
37
38
impl TaskControlBlockInner {
39
pub fn get_trap_cx(&self) -> &'static mut TrapContext {
40
self.trap_cx_ppn.get_mut()
41
}
42
43
#[allow(unused)]
44
fn get_status(&self) -> TaskStatus {
Callers
6
new
Method · 0.80
exec
Method · 0.80
fork
Method · 0.80
current_trap_cx
Function · 0.80
sys_fork
Function · 0.80
sys_thread_create
Function · 0.80
Calls
1
get_mut
Method · 0.45
Tested by
no test coverage detected