scx_cgroup_task_migrated(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ scx_cgroup_task_migrated(9) β€” Kernel API Manual πŸ¦‹

🌸 NAME 🌸

scx_cgroup_task_migrated β€” re-home a task that changed cgroups. literally the relocation glow-up for a task that switched cgroups πŸ’…


✨ SYNOPSIS ✨

void scx_cgroup_task_migrated (struct cgroup_task_migrate_ctx *ctx );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctx β€” committed migration. that's the migration that's already committed, bestie β€” no take-backs πŸ’–

πŸ’… DESCRIPTION πŸ’…

Move the task to its new cgroup's sched, which scx_cgroup_task_migrating already initialized it for. Can't fail. periodt. ✨

This is safe against all phases of the destination sched's destruction. no cap. 🫢

A disable resets cgroup ownership to the parent and re-homes tasks in one scx_cgroup_lock section. If that section already ran, the destination would be the parent. Otherwise, the re-home loop is still ahead and guaranteed to visit the task, now in the destination cgroup. iconic behavior, honestly πŸ‘‘


πŸ”— SEE ALSO πŸ”—

the kernel file itself: ./kernel/sched/ext/sub.c β€” go read the source, bestie 🌈


cute sign-off: from ./kernel/sched/ext πŸ’–, dated October 2026 πŸŽ€, page scx_cgroup_task_migrated(9) β€” byeee bestie πŸ’…

πŸ“¦ where this page comes from