css_rightmost_descendant(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the css_rightmost_descendant(9) page from the Kernel API Manual β€” yes, we're deep in cgroup css territory and it's honestly kinda iconic πŸŽ€βœ¨

🌸 NAME 🌸

css_rightmost_descendant β€” return the rightmost descendant of a css πŸ’…

✨ SYNOPSIS ✨

struct cgroup_subsys_state * css_rightmost_descendant (struct
       cgroup_subsys_state *pos );

πŸŽ€ ARGUMENTS πŸŽ€

  • pos β€” css of interest. that's the one you're asking about, bestie πŸ‘€

πŸ¦‹ DESCRIPTION πŸ¦‹

Return the rightmost descendant of pos. If there's no descendant, pos is returned. This can be used during pre-order traversal to skip subtree of pos. no cap, that's the whole move 🌿

🚨 locking vibe check: while this function requires cgroup_mutex or RCU read locking, it doesn't require the whole traversal to be contained in a single critical section. Additionally, it isn't necessary to hold onto a reference to pos. This function will return the correct rightmost descendant as long as pos is accessible. periodt πŸ’…

πŸ‘‘ SEE ALSO πŸ‘‘

the page also points at Kernel file ./kernel/cgroup/cgroup.c, and then this exact lineup of refs, bestie πŸ‘‡


okay that's literally the whole page, bestie! πŸ’– this one is sourced from ./kernel/cgroup, dated October 2026, and the page is css_rightmost_descendant(9). byeee 🫢✨

πŸ“¦ where this page comes from