Skip to main content

LOCAL_SCHEDULERS

Static LOCAL_SCHEDULERS 

Source
pub(crate) static LOCAL_SCHEDULERS: [SpinLock<Option<SchedulerCpu>>; 32]
Expand description

Per-CPU local scheduler locks — rank 4 in the total lock order.

Acquired after GLOBAL_SCHED_STATE, SCHED_IDENTITY, and BLOCKED_TASKS. Never hold two LOCAL locks simultaneously. Cross-CPU operations use a two-phase protocol: detach under source LOCAL, release, then attach under destination LOCAL.