mem_cgroup_lruvec(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the pglist_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:


xoxo πŸ’… β€” source/version: ./include/linux; date: October 2026. that’s the footer energy, bestie β€” πŸ’–

πŸ“¦ where this page comes from