get_mem_cgr...s_from_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_mem_cgr...s_from_folio β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual β€” this one's get_mem_cgr...s_from_folio(9) and yes the name is doing a little truncated moment, we love that for her πŸ’–


🌸 NAME 🌸

get_mem_cgroup_css_from_folio β€” grab yourself a css of the memcg that's associated with a folio, periodt 🫢


✨ SYNOPSIS ✨

struct cgroup_subsys_state * get_mem_cgroup_css_from_folio (struct folio *folio );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio of interest, aka the main character of this whole call πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” if the memcg is bound to the default hierarchy, then the css of the memcg associated with folio is returned. and the returned css stays associated with folio until it's released. like, she's committed, no cap πŸ’…

but if the memcg is bound to a traditional hierarchy, you get the css of root_mem_cgroup back instead. different hierarchy, different vibe, that's just how it is 🌈


πŸ’œ SEE ALSO πŸ’œ

bestie there is SO much more to read, the lore is deep, iykyk πŸ“šβœ¨

First up, the kernel file ./mm/memcontrol.c β€” and then the whole friend group:


fr fr, that's a whole reading list β€” go off, you've got this πŸ’€πŸ”₯

k bye ily, this page came from ./mm and it's dated October 2026 β€” stay iconic bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from