bpf_mem_cgro...emory_events(9)
β¨ bpf_mem_cgro...emory_events(9) β¨
okay so bestie, welcome to the Kernel API Manual π β yes the manual name is literally Kernel API Manual, and the page itself is bpf_mem_cgro...emory_events(9) (yes the title is truncated like that, that's just how it's spelled here, no cap, don't come for me π«Ά).
πΈ NAME πΈ
bpf_mem_cgroup_memory_events β bestie, it reads the memory event value of a memory cgroup β¨ that's the whole vibe.
π SYNOPSIS π
__bpf_kfunc unsigned long bpf_mem_cgroup_memory_events (struct
mem_cgroup *memcg , enum memcg_memory_event event );
look at her, she's iconic π
π¦ ARGUMENTS π¦
memcgβ the memory cgroup, the main character of this whole operation πeventβ the memory event id, like the little label telling us which event we're peeking at π₯
π RETURN π
The current value of the memory event counter. that's it, that's the tea π β she hands you back the count and minds her business.
π SEE ALSO π
kernel file ./mm/bpf_memcontrol.c β go look, she's cute π§
and her whole friend group, fr fr:
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_page_state(9)bpf_mem_cgroup_flush_stats(9)
like, the whole squad ππ
ngl this page is short and sweet but every single detail up there is load-bearing, so don't skip the arguments, bestie π
and that's the page!! mwah π this one came straight out of ./mm, dated October 2026, and yes the footer says bpf_mem_cgro...emory_events(9) one more time because she likes a dramatic exit πβ¨ slay, bye π
π¦ 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