Trait axhal::trap::CurrentTask
source · pub trait CurrentTask {
// Required methods
fn current_trap_frame() -> *mut TrapFrame;
fn current_satp() -> usize;
fn current_trap_frame_virt_addr() -> usize;
}
Available on crate feature
user-paging
only.Expand description
Task Infomation Interface
Call the external task manager to obtain infomation
This trait is defined with the #[def_interface]
attribute. Users
should implement it with #[impl_interface]
in any other crate.
Required Methods§
sourcefn current_trap_frame() -> *mut TrapFrame
fn current_trap_frame() -> *mut TrapFrame
Gets TrapFrame
of current task
sourcefn current_satp() -> usize
fn current_satp() -> usize
Gets root of page table of current task
sourcefn current_trap_frame_virt_addr() -> usize
fn current_trap_frame_virt_addr() -> usize
Get virtual address of the trap frame of current task