Struct kernel::common::context::Context [] [src]

pub struct Context {
    pub stack: usize,
    pub stack_ptr: usize,
    pub fx: usize,
    pub fx_enabled: bool,
    pub memory: Vec<ContextMemory>,
    pub cwd: String,
    pub args: Vec<String>,
    pub files: Vec<ContextFile>,
    pub interrupted: bool,
    pub exited: bool,
}

Fields

stack
stack_ptr
fx
fx_enabled
memory
cwd
args
files
interrupted
exited

Methods

impl Context

unsafe fn root() -> Box<Self>

unsafe fn new(call: usize, args: &Vec<usize>) -> Box<Self>

fn spawn(box_fn: Box<FnBox()>)

unsafe fn push(&mut self, data: usize)

unsafe fn map(&mut self)

unsafe fn unmap(&mut self)

unsafe fn remap(&mut self, other: &mut Self)

unsafe fn switch(&mut self, other: &mut Self)

Trait Implementations

impl Drop for Context

fn drop(&mut self)