count_memcg_events(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– count_memcg_events(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one lives in the kernel-doc girlies corner, and honestly? it's a little one-shot function that just wants to keep the cgroup accounting books cute and correct πŸŽ€


🌸 NAME 🌸

count_memcg_events β€” literally just accounts VM events in a cgroup πŸ’… no cap, that's the whole job


✨ SYNOPSIS ✨

void count_memcg_events (struct mem_cgroup *memcg , enum vm_event_item
idx , unsigned long count );

like yes, it returns void, she's not giving you anything back, she's just doing the work behind the scenes πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • memcg β€” the memory cgroup 🧚 the actual group-chat this event is getting posted in
  • idx β€” the event item ⭐ the "which event are we even talking about" selector
  • count β€” the number of events that occurred πŸ”₯ how many times it happened, pls be honest

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./mm/memcontrol.c β€” go read the source bestie, she's right there 😭 and also all of these iconic siblings:

iykyk, that's a whole friend group right there 🫢


okay that's the page!! πŸ’œ this little cutie is served from the ./mm directory, dated October 2026, and she answers to the name count_memcg_events(9) β€” mwah, slay, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from