Function kernel::process_loading::load_process

source ยท
fn load_process<C: Chip>(
    kernel: &'static Kernel,
    chip: &'static C,
    process_binary: ProcessBinary,
    app_memory: &'static mut [u8],
    app_id: ShortId,
    index: usize,
    fault_policy: &'static dyn ProcessFaultPolicy,
) -> Result<(&'static mut [u8], Option<&'static dyn Process>), (&'static mut [u8], ProcessLoadError)>
Expand description

Load a process stored as a TBF process binary with app_memory as the RAM pool that its RAM should be allocated from. Returns Ok if the process object was created, Err with a relevant error if the process object could not be created.