mem_cgroup_p..._oom_context(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mem_cgroup_print_oom_context πŸ’–

hey bestie!! this is a page from the Kernel API Manual ✨ the header shortens the title to mem_cgroup_p..._oom_context(9) (iykyk), and the function is here to print OOM information relevant to memory controller. no cap, let’s get into it. 🫢

🌸 NAME 🌸

mem_cgroup_print_oom_context β€” print OOM information relevant to memory controller. periodt. πŸ’…

✨ SYNOPSIS ✨

void mem_cgroup_print_oom_context (struct mem_cgroup *memcg , struct task_struct *p );

πŸŽ€ ARGUMENTS πŸŽ€

  • memcg β€” the memory cgroup that went over limit. πŸ‘€
  • p β€” the task that is going to be killed. 😭

πŸ’€ NOTE πŸ’€

quick note, bestie: memcg and p's mem_cgroup can be different when hierarchy is enabled. yes, that’s the whole note β€” don’t let the vibe check fool you. πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./mm/memcontrol.c β€” and here’s the whole squad:


okay that’s the whole page, bestie πŸ’– source/version: ./mm Β· date: October 2026 Β· manual: mem_cgroup_p..._oom_context(9) β€” mwah, bye! 🫢

πŸ“¦ where this page comes from