bpf_mem_cgro...emory_events(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

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