Struct os::task::id::TaskUserRes
source · pub struct TaskUserRes {
pub tid: usize,
pub ustack_base: usize,
pub process: Weak<ProcessControlBlock>,
}
Fields§
§tid: usize
§ustack_base: usize
§process: Weak<ProcessControlBlock>
Implementations§
source§impl TaskUserRes
impl TaskUserRes
pub fn new( process: Arc<ProcessControlBlock>, ustack_base: usize, alloc_user_res: bool ) -> Self
pub fn alloc_user_res(&self)
fn dealloc_user_res(&self)
pub fn alloc_tid(&mut self)
pub fn dealloc_tid(&self)
pub fn trap_cx_user_va(&self) -> usize
pub fn trap_cx_ppn(&self) -> PhysPageNum
pub fn ustack_base(&self) -> usize
pub fn ustack_top(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TaskUserRes
impl Send for TaskUserRes
impl Sync for TaskUserRes
impl Unpin for TaskUserRes
impl !UnwindSafe for TaskUserRes
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