scx_cgroup_task_migrating(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘.

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