pub struct TaskControlBlockInner {
pub trap_cx_ppn: PhysPageNum,
pub base_size: usize,
pub task_cx: TaskContext,
pub task_status: TaskStatus,
pub memory_set: MemorySet,
pub parent: Option<Weak<TaskControlBlock>>,
pub children: Vec<Arc<TaskControlBlock>>,
pub exit_code: i32,
}
Fields§
§trap_cx_ppn: PhysPageNum
§base_size: usize
§task_cx: TaskContext
§task_status: TaskStatus
§memory_set: MemorySet
§parent: Option<Weak<TaskControlBlock>>
§children: Vec<Arc<TaskControlBlock>>
§exit_code: i32
Implementations§
Source§impl TaskControlBlockInner
impl TaskControlBlockInner
pub fn get_trap_cx(&self) -> &'static mut TrapContext
pub fn get_user_token(&self) -> usize
fn get_status(&self) -> TaskStatus
pub fn is_zombie(&self) -> bool
Auto Trait Implementations§
impl Freeze for TaskControlBlockInner
impl !RefUnwindSafe for TaskControlBlockInner
impl Send for TaskControlBlockInner
impl Sync for TaskControlBlockInner
impl Unpin for TaskControlBlockInner
impl !UnwindSafe for TaskControlBlockInner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more