cgroup_subsys_on_dfl(9)
β¨ cgroup_subsys_on_dfl π
okay so bestie, welcome to the Kernel API Manual β yes this is a real kernel manpage and yes it's about cgroups, buckle up π
πΈ NAME πΈ
cgroup_subsys_on_dfl β the fast test on whether a subsys is on the default hierarchy β¨
like, it's literally a quick vibe check for your subsystem's hierarchy status, no cap π₯
π¦ SYNOPSIS π¦
cgroup_subsys_on_dfl (ss );
that's it. that's the whole call. she's short and she knows it π
π ARGUMENTS π
ssβ the subsystem in question π this is the one you're asking about, the main character of the whole operation fr fr
π SEE ALSO π
Kernel file ./include/linux/cgroup.h β go read it, it's giving source of truth πβ¨
and then the whole friend group of related functions, all invited to the group chat π«Ά:
cgroup_subsys_enabled(9)css_for_each_child(9)css_for_each_descendant_pre(9)css_for_each_descendant_post(9)cgroup_taskset_for_each(9)cgroup_taskset_for_each_leader(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)
bestie moment: this is a kernel-internal thing, so if you're out here calling it from userspace you're doing too much π keep it in the kernel where it belongs, iykyk π
and that's the whole page, periodt π sourced straight from ./include/linux, dated October 2026 β mwah, go slay some cgroups for me π§ββοΈβπ
π¦ 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