[][src]Function sunrise_kernel::syscalls::start_process

pub fn start_process(
    hnd: u32,
    main_thread_prio: u32,
    default_cpuid: u32,
    main_thread_stacksz: usize
) -> Result<(), UserspaceError>

Start the given process on the provided CPU with the provided scheduler priority.

A stack of the given size will be allocated using the process' memory resource limit and memory pool.

The entrypoint is assumed to be the first address of the code_addr region provided in create_process(). It takes two parameters: the first is the usermode exception handling context, and should always be NULL. The second is a handle to the main thread.

Errors