Function spawn::init

source ·
pub fn init(
    kernel_mmi_ref: MmiRef,
    cpu_id: CpuId,
    stack: NoDrop<Stack>
) -> Result<BootstrapTaskRef, &'static str>
Expand description

Initializes tasking for this CPU, including creating a runqueue for it and creating its initial task bootstrapped from the current execution context.