[][src]Function sunrise_libuser::syscalls::start_process

pub fn start_process(
    process_handle: &Process,
    main_thread_prio: u32,
    default_cpuid: u32,
    main_thread_stacksz: u32
) -> Result<(), KernelError>

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