Struct lambdaOS::task::process::Process
[−]
[src]
pub struct Process { pub pid: ProcessId, pub name: String, pub state: State, pub priority: Priority, pub ctx: Context, pub stack: Option<Vec<usize>>, }
A single process on the system. It has register context, id, name and an Optional process stack.
Fields
pid: ProcessId
name: String
state: State
priority: Priority
ctx: Context
stack: Option<Vec<usize>>
Methods
impl Process
[src]
fn new(id: ProcessId) -> Self
[src]
fn set_state(&mut self, new: State)
[src]
Set the state of the process.
fn set_page_table(&mut self, addr: usize)
[src]
Set cr3
to point to the address specified by addr
.
fn set_stack(&mut self, addr: usize)
[src]
Set the stack pointer register.
Trait Implementations
impl Clone for Process
[src]
fn clone(&self) -> Process
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more