find_existing_css_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, welcome to the Kernel API Manual, section 9, cgroups territory β€” this page is all about find_existing_css_set, and what it does is literally right there in the name: init css array and find the matching css_set ✨

no cap, that's the whole job description. short, sweet, iconic πŸŽ€


🌸 SYNOPSIS 🌸

here's the signature, copy it exactly, don't freestyle it:

struct css_set * find_existing_css_set (struct css_set *old_cset ,
       struct cgroup *cgrp , struct cgroup_subsys_state **template );

three args, one pointer back out the door. the way that return type is a struct css_set *… yes ma'am 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • old_cset β€” the css_set that we're using before the cgroup transition. so like, the vibe you're leaving behind πŸ‘‹
  • cgrp β€” the cgroup that we're moving into. the destination, the new home, the main character of this operation 🏠
  • template β€” an out param for the new set of csses. ⚠️ and listen: it should be clear on entry. not "should probably", not "ideally" β€” clear on entry. so wipe it first, bestie, don't make it awkward πŸ’€

🌈 SEE ALSO 🌈

so there's a lot here, and i mean a lot β€” this page hangs out with basically the entire cgroup friend group. deep breath, here we go πŸ’–

it all lives in the kernel file ./kernel/cgroup/cgroup.c, and the crew is:

like i said. the whole group chat 😭 and yes, every single one of them is a real (9) reference, i didn't skip a single bestie πŸ’œ


aaand that's the page, babe πŸŽ€ it comes from ./kernel/cgroup, dated October 2026, and the footer tag is find_existing_css_set(9) β€” same energy as the header, full circle, periodt πŸ’…πŸŒΈ

πŸ“¦ where this page comes from