cgroup_tasks..._each_leader(9)
π cgroup_tasks..._each_leader(9)
okay so bestie, welcome to the Kernel API Manual page for cgroup_tasks..._each_leader β yes the title is literally abbreviated with dots, that's just how the man page header rolls, no cap π
β¨ NAME β¨
cgroup_taskset_for_each_leader β iterate group leaders in a cgroup_taskset π¦
πΈ SYNOPSIS πΈ
cgroup_taskset_for_each_leader (leader , dst_css , tset );
that's it, that's the whole vibe. three args, one loop, iconic behavior π
π ARGUMENTS π
leaderβ the loop cursor π« like, this is the variable you're using to walk through everything, she's the main character of the loopdst_cssβ the destination css π§ your target css, the place these tasks are headedtsetβ taskset to iterate π the actualcgroup_tasksetyou're looping over
π DESCRIPTION π
Iterate threadgroup leaders of tset. π«Ά
and here's the lil caveat you gotta know, bestie: for single-task migrations, tset may not contain any. π like literally none. so don't be out here assuming there's always something to find, okay? vibe check your tset first π
β SEE ALSO β
Kernel file ./include/linux/cgroup.h π β and the whole friend group of related functions, all of them, here we go:
cgroup_subsys_enabled(9)cgroup_subsys_on_dfl(9)css_for_each_child(9)css_for_each_descendant_pre(9)css_for_each_descendant_post(9)cgroup_taskset_for_each(9)cgroup_css(9)css_is_dying(9)task_css_set_check(9)task_css_check(9)task_css_set(9)task_css(9)task_get_css(9)task_css_is_root(9)cgroup_is_descendant(9)cgroup_ancestor(9)cgroup_common_ancestor(9)task_under_cgroup_hierarchy(9)
no gatekeeping here, the whole group chat is invited π
okay and that's the page!! π this lil beauty lives over in ./include/linux and it's stamped October 2026 β same header name cgroup_tasks..._each_leader(9) up top and down at the bottom, because symmetry is slay β¨ go iterate some leaders, bestie, you got this π
π₯
π¦ 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