css_rstat_flush(9)
π
css_rstat_flush(9) β Kernel API Manual
hey bestie, welcome to the css_rstat_flush(9) page β this is the Kernel API Manual moment where we make cgroup stats behave β¨
πΈ NAME πΈ
css_rstat_flush β flush stats in @css's rstat subtree π
β¨ SYNOPSIS β¨
__bpf_kfunc void css_rstat_flush (struct cgroup_subsys_state *css );
π ARGUMENTS π
cssβ target cgroup subsystem state. that's the thing we're flushing, bestie π«Ά
π DESCRIPTION π
okay so this function is literally the stats glow-up β¨ It collects all per-cpu stats in css's subtree into the global counters and propagates them upwards. After this function returns, all rstat nodes in the subtree have up-to-date ->stat. no cap π―
it also gets all rstat nodes in the subtree β including css β off the ->updated_children lists. cleaning up the group chat, basically π§Ήπ¬
heads up bestie: this function may block π΄ so don't act surprised when it does.
π¦ SEE ALSO π¦
- Kernel file
./kernel/cgroup/rstat.c __css_rstat_updated(9)css_rstat_push_children(9)css_rstat_updated_list(9)ss_rstat_init(9)
mwah π this page is sourced from ./kernel/cgroup, dated October 2026, and it's the css_rstat_flush(9) manual page β periodt ππ
π¦ 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