mem_cgroup_lruvec(9)
π mem_cgroup_lruvec(9) π
okay bestie, welcome to the Kernel API Manual corner where we meet mem_cgroup_lruvec β the function whose whole job is to get the lru list vector for a memcg & node. it's giving βwhich lruvec holds these pages?β energy, and honestly? iconic. β¨
πΈ NAME πΈ
mem_cgroup_lruvec β get the lru list vector for a memcg & node. π«Ά
β¨ SYNOPSIS β¨
struct lruvec * mem_cgroup_lruvec (struct mem_cgroup *memcg , struct pglist_data *pgdat );
π ARGUMENTS π
memcgβ the memcg of the wanted lruvec. thatβs the memory cgroup in question, bestie.pgdatβ thepglist_data. yes, that is literally the whole description; we keep it exactly like that. π
π¦ DESCRIPTION π¦
Returns the lru list vector holding pages for a given memcg & pgdat combination. thatβs the whole plot. π―
This can be the node lruvec, if the memory controller is disabled. no cap β when the memory controller is off, the node lruvec can be the answer. π¦
π SEE ALSO π
The Kernel file ./include/linux/memcontrol.h is right there in the mix, plus these besties:
mem_cgroup_shrink_is_root(9)β see also reference, slay.mem_cgroup_charge(9)β see also reference, periodt.mem_cgroup_uncharge(9)β see also reference, love that for us.folio_lruvec(9)β see also reference, no notes.parent_mem_cgroup(9)β see also reference, ate.
xoxo π
β source/version: ./include/linux; date: October 2026. thatβs the footer energy, bestie β π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms