cgroup_common_ancestor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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:


source vibes: ./include/linux Β· date: October 2026 Β· page: cgroup_common_ancestor(9) β€” mwah bestie, go be amazing πŸ’–πŸŽ€

πŸ“¦ where this page comes from