css_rstat_push_children(9)
π css_rstat_push_children(9) β a Kernel API Manual moment π
okay bestie, this one's from the Kernel API Manual and it's lowkey a whole vibe β¨ it's css_rstat_push_children, and no cap it does exactly one thing but it does it well π«Ά
β¨ NAME β¨
css_rstat_push_children β push children css's into the given list π (yes that's the whole name, she's not wordy, she's efficient π)
πΈ SYNOPSIS πΈ
struct cgroup_subsys_state * css_rstat_push_children (struct
cgroup_subsys_state *head , struct cgroup_subsys_state *child , int cpu
);
like, that's the whole signature. struct in, struct out, three args, periodt π
π¦ ARGUMENTS π¦
headβ the current head of the list (which also = the subtree root, iykyk π)childβ the first child of the root, aka where the walk starts πΆcpuβ the target cpu. the one we're doing all this for π₯οΈ
β RETURN β
A new singly linked list of css's to be flushed. that's it, that's the tea β she hands you back a whole list and you're like "slay" π
π DESCRIPTION π
okay so here's the lore π₯ the function iteratively traverses down the css_rstat_cpu updated tree, level by level, and pushes all the parents first before their next-level children into a singly linked list. the connection goes through the rstat_flush_next pointer, and the list is built from the tail backward, like "pushing" css's into a stack π₯ (yes, literally a stack, she said what she said).
and literally the root? the caller pushes that one, not this function. not her job, not her problem π
fr fr remember: the root is pushed by the caller. don't come for this function about the root, she doesn't know her π
π§ SEE ALSO π§
- Kernel file
./kernel/cgroup/rstat.c __css_rstat_updated(9)css_rstat_updated_list(9)css_rstat_flush(9)ss_rstat_init(9)
that's the page bestie, go forth and push some children πΈπ«Ά
sign-off szn: this one lives under ./kernel/cgroup and it's dated October 2026 β iconic, timeless, we stan a stable release calendar ππ
π¦ 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