memblock_est...r_free_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– memblock_estimated_nr_free_pages(9) πŸ’–

bestie, welcome to the Kernel API Manual page for memblock_estimated_nr_free_pages(9). This is the one where memblock gives you a vibe-check number of free pages, not the final precise count. 🫢

πŸ¦‹ NAME πŸ¦‹

  • memblock_estimated_nr_free_pages β€” return estimated number of free pages from memblock point of view. ✨

🌸 SYNOPSIS 🌸

unsigned long memblock_estimated_nr_free_pages (void );

πŸ“ ARGUMENTS πŸ“

  • void β€” no arguments. literally none. zero. the void is voiding. πŸ•³οΈ

✨ DESCRIPTION ✨

okay so during bootup, subsystems might need a rough estimate of the number of free pages in the whole system, before precise numbers are available from the buddy. πŸ‘€

especially with CONFIG_DEFERRED_STRUCT_PAGE_INIT, the numbers obtained from the buddy might be very imprecise during bootup. so yeah, this is the lowkey β€œgood enough for now” estimate from memblock’s point of view. no cap. πŸ’…

πŸŽ€ RETURN πŸŽ€

  • An estimated number of free pages from memblock point of view. 🫧

πŸ”₯ SEE ALSO πŸ”₯

the whole memblock cinematic universe, no skips. iykyk:


mwah πŸ’‹ this page’s source/version tag is ./mm, dated October 2026, and the footer page name is memblock_est...r_free_pages(9) β€” periodt. 🌈

πŸ“¦ where this page comes from