cpuset_for_e...scendant_pre(9)
πΈ 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 π
- Kernel file
./kernel/cgroup/cpuset-internal.h cpuset_for_each_child(9)π«Ά
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
- 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