scx_call_op_set_cpumask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– scx_call_op_set_cpumask(9) β€” Kernel API Manual πŸ’–

🌸 NAME 🌸

scx_call_op_set_cpumask β€” Invoke the set_cpumask or set_cmask op for @task

✨ SYNOPSIS ✨

void scx_call_op_set_cpumask (struct scx_sched *sch , struct rq *rq ,
       struct task_struct *task , const struct cpumask *cpumask );

πŸŽ€ ARGUMENTS πŸŽ€

  • sch β€” the scx_sched being invoked, okay bestie this is the scheduler in question πŸ‘‘
  • rq β€” the rq to update as the currently-locked rq, or NULL
  • task β€” the task whose affinity is changing, main character energy fr fr
  • cpumask β€” the new cpumask, fresh outta the group chat πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so for cid-form schedulers, this translates cpumask to a cmask in the per-cpu scratch and dispatches through the ops_cid union view. It’s giving very specific kernel behavior, and we love that for us ✨

🚨 Caller must hold rq's rq lock. That part is literally not optional, bestie β€” no cap.

🌈 SEE ALSO 🌈

Kernel file ./kernel/sched/ext/ext.c β€” yes, that’s the spot β€” plus the whole iconic roster:


xoxo, your kernel bestie πŸ’– β€” source/version: ./kernel/sched/ext, date: October 2026 πŸŽ€βœ¨

πŸ“¦ where this page comes from