Struct os::task::task::TaskControlBlock
source · pub struct TaskControlBlock {
pub pid: PidHandle,
pub kernel_stack: KernelStack,
inner: UPSafeCell<TaskControlBlockInner>,
}
Fields§
§pid: PidHandle
§kernel_stack: KernelStack
§inner: UPSafeCell<TaskControlBlockInner>
Implementations§
source§impl TaskControlBlock
impl TaskControlBlock
pub fn inner_exclusive_access(&self) -> RefMut<'_, TaskControlBlockInner>
pub fn new(elf_data: &[u8]) -> Self
pub fn exec(&self, elf_data: &[u8])
pub fn fork(self: &Arc<TaskControlBlock>) -> Arc<TaskControlBlock>
pub fn getpid(&self) -> usize
Auto Trait Implementations§
impl !Freeze for TaskControlBlock
impl !RefUnwindSafe for TaskControlBlock
impl Send for TaskControlBlock
impl Sync for TaskControlBlock
impl Unpin for TaskControlBlock
impl !UnwindSafe for TaskControlBlock
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