lruvec_lru_size(9)
π 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, passMAX_NR_ZONES - 1β that's the move, iykyk π―
π₯ SEE ALSO π₯
- Kernel file
./mm/vmscan.cβ plus these iconic little friends:
go read them, they're all lowkey obsessed with the same memory-reclaiming lifestyle π
bestie heads up:zone_idxreally does matter βMAX_NR_ZONES - 1is 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
- 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