cpuset_for_e...scendant_pre(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

cpuset_for_each_descendant_pre β€” a pre-order walk of a cpuset's descendants, bestie πŸ’…


✨ SYNOPSIS ✨

cpuset_for_each_descendant_pre (des_cs , pos_css , root_cs );

πŸŽ€ ARGUMENTS πŸŽ€

  • des_cs β€” your loop cursor, aka the little pointer that's currently vibing on whichever descendant we're visiting rn πŸ¦‹
  • pos_css β€” the thing used for iteration. it's giving "keep track of where we are" energy ✨
  • root_cs β€” the target cpuset whose ancestors we're walking. the main character of this whole operation πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

Okay so here's the tea β˜• β€” this macro walks des_cs through all the online descendants of root_cs. fr fr, that's the whole vibe.

⚠️ Important: you must use this with RCU read locked. no cap, don't skip that part or things get cursed πŸ’€

The caller is allowed to modify pos_css by calling css_rightmost_descendant to skip a whole subtree β€” lowkey iconic if you wanna prune the walk early πŸ™ˆ

And yes, root_cs is included in the iteration, and it's literally the first node to be visited. it gets the VIP treatment first 🎟️✨


🌈 SEE ALSO 🌈


that's a wrap, bestie πŸŽ€ this page came from ./kernel/cgroup, dated October 2026, and it's all about cpuset_for_e...scendant_pre(9) β€” slay, go read the source, ily πŸ’œ

πŸ“¦ where this page comes from