Skip to main content

schedule_current_cpu_from_preempt_exit

Function schedule_current_cpu_from_preempt_exit 

Source
pub unsafe fn schedule_current_cpu_from_preempt_exit(
    entry: RuntimeSchedulerEntry,
) -> Result<SchedulerOutcome, TaskError>
Expand description

Services the final preemption-guard exit without exposing a preemptible window before the scheduler owns its CPU-local baton.

§Safety

entry must match the caller’s exact runtime context. The caller must own one final lock-preemption depth and must satisfy the raw IRQ-state contract documented by RuntimeSchedulerEntry.