#[repr(u32)]pub enum RuntimeSchedulerEntry {
Task = 0,
PreemptExit = 1,
IrqReturn = 2,
IrqGuardExit = 3,
IrqReturnContinuation = 4,
}Expand description
Typed source of one scheduler-frame baton.
The runtime uses this value to validate and atomically transform its CPU-local preemption state. In particular, preemption-guard exits retain their final lock depth until the scheduler frame owns the baton, closing the interrupt window between enabling preemption and entering the scheduler.
Variants§
Task = 0
Ordinary task context with IRQs enabled and no preemption guard.
PreemptExit = 1
Final task-context preemption guard exit with IRQs disabled.
The runtime retains the final preemption depth while it disables raw IRQs, then atomically converts that depth into the scheduler baton.
IrqReturn = 2
Final IRQ-return preemption guard exit with IRQs still disabled.
IrqGuardExit = 3
Final task-context IRQ publication guard exit with IRQs disabled.
The runtime retains the final IRQ-guard depth after publishing local scheduler work, then atomically converts that depth into the scheduler baton. This is the local counterpart of a remote scheduler IPI.
IrqReturnContinuation = 4
A repeated IRQ-return pass after the previous scheduler frame fully released its switch baton.
The caller enters with hardware IRQs disabled and preemption depth zero. Before claiming the fresh scheduler baton, the runtime establishes one ordinary preemption depth, opens the Linux-style IRQ window, disables IRQs again, and atomically converts that depth into the scheduler baton.
Trait Implementations§
Source§impl Clone for RuntimeSchedulerEntry
impl Clone for RuntimeSchedulerEntry
Source§fn clone(&self) -> RuntimeSchedulerEntry
fn clone(&self) -> RuntimeSchedulerEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more