bpf_mem_cgroup_page_state(9)
π bpf_mem_cgroup_page_state(9) π
okay so bestie, welcome to the Kernel API Manual page for bpf_mem_cgroup_page_state(9) β yes the whole thing is named after the function, that's just how these girlies roll β¨
πΈ NAME πΈ
bpf_mem_cgroup_page_state β literally just reads a memory cgroup's page state counter π
π¦ SYNOPSIS π¦
__bpf_kfunc unsigned long bpf_mem_cgroup_page_state (struct mem_cgroup
*memcg , int idx );
like. that's it. that's the whole vibe check π
π ARGUMENTS π
memcgβ the memory cgroup, aka the thing you're snooping on πidxβ the counter idx, aka which counter you want, bestie, pick one π―
β¨ DESCRIPTION β¨
So this little icon lets you read memory cgroup statistics π The output is in bytes. That's it, that's the tea β No cap, it's giving "simple and useful."
π RETURN π
The value of the page state counter, in bytes π (yes, bytes, don't @ me)
π SEE ALSO π
Kernel file ./mm/bpf_memcontrol.c π§ and honestly the whole friend group:
bpf_get_root_mem_cgroup(9)bpf_get_mem_cgroup(9)bpf_put_mem_cgroup(9)bpf_mem_cgroup_vm_events(9)bpf_mem_cgroup_usage(9)bpf_mem_cgroup_memory_events(9)bpf_mem_cgroup_flush_stats(9)
like get you a kfunc that can do all of this, fr fr π«Ά
okay that's the whole page, bestie πΈ this came out of ./mm, dated October 2026, and it's filed under bpf_mem_cgroup_page_state(9) β mwah, slay, 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