Skip to main content

validate_schedule_context

Function validate_schedule_context 

Source
pub fn validate_schedule_context(__arg0: RuntimeScheduleOrigin) -> RuntimeStatus
Expand description

Validates an entry before it publishes task state or creates a baton.

This is the runtime equivalent of Linux might_sleep() plus the final scheduler-entry context check. It must return RuntimeStatus::UnsafeContext while any ordinary IRQ/preemption guard is live or hardware execution is still in hard IRQ context.