scx_cgroup_task_migrating(9)
π
scx_cgroup_task_migrating π
hiii bestie!! this is the Kernel API Manual page for scx_cgroup_task_migrating(9), and it's literally all about prepping a task for a cgroup migration β¨. yes, the name is long, but she's iconic, okay?
π¦ NAME π¦
scx_cgroup_task_migratingβ prepare a task for a cgroup migration. that's the assignment, and she ate π.
β¨ SYNOPSIS β¨
s32 scx_cgroup_task_migrating (struct cgroup_task_migrate_ctx *ctx );
that's the whole signature, no cap. copy it exactly, bestie π«Ά.
π ARGUMENTS π
ctxβ the migration that's being prepared. yep, that's the one and only argument πΈ.
π DESCRIPTION π
okay so here's the vibe: a task's sched must match its cgroup's owner. because of that, a migration that crosses a sched boundary re-homes the task once it's committed π₯.
so you run the fallible part right here, before the migration commits: initialize the task for the destination sched. and if this gets rejected? the cgroup.procs write fails. that's the whole tea βπ.
bestie reminder: this is the fallible part, so it's doing real work before the migration commits β don't skip it π.
π SEE ALSO π
kernel file: ./kernel/sched/ext/sub.c β go read the extended universe, iykyk π.
scx_skip_subtree_pre(9)scx_next_descendant_pre(9)scx_rescue_charge(9)scx_rescue_end(9)scx_rescue_keep(9)scx_rescue_accrue(9)scx_rescue_admit(9)scx_rescue_try_admit(9)scx_rescue_check_overload(9)scx_rescue_timerfn(9)scx_resolve_local_dsq(9)queue_sync_ecaps(9)scx_process_sync_ecaps(9)scx_unbypass_replay_ecaps(9)scx_discard_stale_ecaps_syncs(9)scx_rehome_task(9)scx_punt_task(9)scx_cgroup_claim_subtree(9)scx_cgroup_return_subtree(9)scx_cgroup_task_migrated(9)scx_cgroup_task_migrate_canceled(9)scx_bpf_sub_dispatch(9)scx_bpf_sub_grant(9)scx_bpf_sub_revoke(9)scx_bpf_sub_caps(9)scx_bpf_sub_kill_bstr(9)
and that's the list, periodt. mwah π
source/version: ./kernel/sched/ext β’ date: October 2026 β’ page: scx_cgroup_task_migrating(9) β bye bestie, slay your migrations ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms