Each entry carries (priority, affinity: CpuMask, value). pop_for_cpu(cpu) returns the highest-priority entry whose affinity includes that CPU in O(log N), making it suitable for task schedulers where ...