lruvec_lru_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– lruvec_lru_size(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” this one's lruvec_lru_size(9) and it's literally the page that tells you how many pages are chilling on a given LRU list. no cap. πŸ¦‹


✨ NAME ✨

lruvec_lru_size β€” returns the number of pages on the given LRU list. that's it, that's the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

unsigned long lruvec_lru_size (struct lruvec *lruvec , enum lru_list lru
, int zone_idx );

she takes three things and gives you back an unsigned long. slay. πŸ’…


🫢 ARGUMENTS 🫢

  • lruvec β€” the lru vector. your main character struct, the whole reason we're here πŸ‘‘
  • lru β€” which lru to use. pick your fighter ✨
  • zone_idx β€” the zones to consider. and listen, if you want the whole LRU list, pass MAX_NR_ZONES - 1 β€” that's the move, iykyk πŸ’―

πŸ”₯ SEE ALSO πŸ”₯

go read them, they're all lowkey obsessed with the same memory-reclaiming lifestyle 🌈


bestie heads up: zone_idx really does matter β€” MAX_NR_ZONES - 1 is the "give me everything" option, anything else is you being specific πŸ™ˆ

k bye, this page came from ./mm, dated October 2026 β€” mwah, drink some water, and go count some pages πŸ’œπŸ§šβ€β™€οΈπŸ“

πŸ“¦ where this page comes from