get_mem_cgroup_from_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– get_mem_cgroup_from_folio(9) πŸ’–

🌸 NAME 🌸

get_mem_cgroup_from_folio β€” Obtain a reference on a given folio's memcg. 🫢 and yes bestie, this page is from the Kernel API Manual β€” iconic.

πŸ¦‹ SYNOPSIS πŸ¦‹

okay so the signature is literally:

struct mem_cgroup * get_mem_cgroup_from_folio (struct folio *folio );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” folio from which memcg should be extracted. πŸ’… that's the folio you're pulling the memcg out of, no cap.

✨ DESCRIPTION ✨

See folio_memcg for folio->objcg/memcg binding rules. that's the whole lore drop, bestie β€” literally the entire description 😭.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./mm/memcontrol.c is also in the mix, and the whole SEE ALSO crew is:

mwah πŸ’‹ β€” source/version ./mm, date October 2026, page get_mem_cgroup_from_folio(9).

πŸ“¦ where this page comes from