cgroup_common_ancestor(9)
π NAME π
okay so bestie, this is cgroup_common_ancestor from the Kernel API Manual β yes, the section 9 one, iykyk β and its whole job is literally find common ancestor of two cgroups. That's the name-card. Periodt. π
πΈ SYNOPSIS πΈ
struct cgroup * cgroup_common_ancestor (struct cgroup *a , struct cgroup
*b );
π¦ ARGUMENTS π¦
aβ first cgroup to find common ancestor of. Like, one side of the family tree you're checking, bestie π³bβ second cgroup to find common ancestor of. The other side, matching energy required π
β¨ DESCRIPTION β¨
okay so the actual vibe: find the first cgroup that is an ancestor of both a and b, if it exists, and return a pointer to it. If such a cgroup doesn't exist, return NULL. That's it. No cap. π₯
Safety check, because we stay safe: this function is safe to call as long as both a and b are accessible. π«Ά
π SEE ALSO π
go peek at the Kernel file ./include/linux/cgroup.h and these iconic cross-refs, bestie:
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_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)task_under_cgroup_hierarchy(9)
source vibes: ./include/linux Β· date: October 2026 Β· page: cgroup_common_ancestor(9) β mwah bestie, go be amazing ππ
π¦ 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