absent_pages_in_range(9)
β¨ absent_pages_in_range(9) β¨
okay bestie, so this is a page from the Kernel API Manual and honestly? it's a little sleeper hit. it lives in absent_pages_in_range(9) and it's about counting the holes. the empty spots. the missing page frames. the void, basically. π³οΈπ
π NAME π
absent_pages_in_range β literally just returns the number of page frames chillin' inside the holes within a range. that's it. that's the whole gig. π
πΈ SYNOPSIS πΈ
unsigned long absent_pages_in_range (unsigned long start_pfn , unsigned long end_pfn );
so you hand it two unsigned long PFNs and it hands you back an unsigned long. no cap. very unsigned long core of it. π«Ά
π ARGUMENTS π
start_pfnβ the start PFN, aka where you begin searching for holes. your starting line. your opening scene. πend_pfnβ the end PFN, aka where you stop searching for holes. the search wraps up here, bestie. π
π¦ RETURN π¦
it gives you back the number of pages frames in memory holes within a range. yes, "pages frames." that's what the original says, and we do not correct the icon. periodt. πβ¨
β SEE ALSO β
- Kernel file
./mm/mm_init.cβ yes, the actual file, we're shouting it out π get_pfn_range_for_nid(9)free_area_init(9)node_map_pfn_alignment(9)
go read those next, iykyk. π₯
heads up bestie: ./mm is where this page calls home, so that's the directory to keep in your brain. π§ π
that's a wrap, bestie π this page came straight outta ./mm and it's dated October 2026 β so yes, it's from the future, and yes, it still ate. ππ¦π
π¦ 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