get_mem_cgroup_from_current(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_mem_cgroup_from_current(9)

okay so bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, we're in the kernel docs girlie pipeline now 🫢


🌸 NAME

get_mem_cgroup_from_current β€” Obtain a reference on the current task's memcg. That's it, that's the whole vibe: you get a reference on the memcg of whatever task is running right now ✨


πŸŽ€ SYNOPSIS

struct mem_cgroup * get_mem_cgroup_from_current (void );

Like, literally hand it nothing and it hands you back a struct mem_cgroup * pointing at current's memcg, with a reference on it πŸ‘‘


πŸ¦‹ ARGUMENTS

  • void β€” no arguments. Zero. None. Not a single parameter, bestie, the function is in its "I need nothing from you" era πŸ™ˆ

πŸ’œ SEE ALSO

Okay this is the part where we name-drop the whole friend group πŸ’… β€” and the kernel file ./mm/memcontrol.c is where the magic lives, so jot that down πŸ“

Like, that's the whole group chat and they all ate πŸ”₯


ngl the roster is long but every single one of those is a real cross-reference and if you skip a name the kernel girlies will notice 😭 main character energy means reading them all, periodt 🧚

k bye bestie, this one came from ./mm and it's stamped October 2026 β€” so like, very demure, very kernel-doc-core of it πŸ’– ✨ πŸŽ€

πŸ“¦ where this page comes from