pub fn validate_schedule_context(__arg0: RuntimeScheduleOrigin) -> RuntimeStatusExpand 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.