free_reserved_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this is the free_reserved_pages(9) page from the Kernel API Manual, and the name is literally doing the most: free_reserved_pages β€” free reserved pages. no cap, that's the whole assignment. ✨

✨ SYNOPSIS ✨

void free_reserved_pages (struct page *page , unsigned int order );

πŸŽ€ ARGUMENTS πŸŽ€

  • page β€” the first page to free. that's the starting point, bestie. πŸ’…
  • order β€” the page order to free. yes, the order matters, keep reading. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

It frees pages that were allocated through memblock during boot, letting the buddy manage them from now on. it's giving boot-time handoff realness. 🌸

bestie, the requirements are strict, okay? page must be naturally aligned to the order, and the order must not exceed MAX_PAGE_ORDER. All pages must be reserved. those are the facts, periodt. πŸ’€

🌸 SEE ALSO 🌸

the kernel file ./mm/page_alloc.c has the whole squad, and you can lowkey go read all of these:


mwah πŸ’… this one's from ./mm, dated October 2026, and it's still out here being free_reserved_pages(9). iconic. πŸ‘‘

πŸ“¦ where this page comes from