MCPcopy 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
38impl 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

newMethod · 0.80
execMethod · 0.80
forkMethod · 0.80
current_trap_cxFunction · 0.80
sys_forkFunction · 0.80
sys_thread_createFunction · 0.80

Calls 1

get_mutMethod · 0.45

Tested by

no test coverage detected