Skip to main content

check_sched_task_executor_backing

Function check_sched_task_executor_backing 

Source
pub fn check_sched_task_executor_backing(
    n_sched_tasks: usize,
    backing: &[[MaybeUninit<u64>; 11084]],
) -> Result<(), SchedTaskBackingShort>
Expand description

The spawned sched tasks’ executor backing. nros::main! emits one SchedTaskExecutorBacking static per sched-task entry and hands its slots to the board’s run_sched_tasks, which refuses a short block through check_sched_task_executor_backing and opens each spawned sched task with Executor::open_with_session_slot. Gated like the module it names (has_rmw + alloc in nros-node). The ONE refusal every board’s run_sched_tasks makes before it opens anything: n_sched_tasks sched tasks run, one on the boot executor, so n_sched_tasks - 1 must each find a slot. Checked up front rather than at each spawn, so a short block never leaves a half-spawned sched task chain.