free_reserved_pages(9)
π 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?pagemust be naturally aligned to theorder, and theordermust not exceedMAX_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:
__get_pfnblock_flags_mask(9)get_pfnblock_bit(9)get_pfnblock_migratetype(9)__set_pfnblock_flags_mask(9)set_pfnblock_bit(9)clear_pfnblock_bit(9)set_pageblock_migratetype(9)__move_freepages_block_isolate(9)__putback_isolated_page(9)__free_pages(9)free_pages(9)alloc_pages_exact(9)alloc_pages_exact_nid(9)free_pages_exact(9)nr_free_zone_pages(9)nr_free_buffer_pages(9)find_next_best_node(9)setup_per_zone_wmarks(9)__free_contig_range(9)alloc_contig_frozen_range(9)alloc_contig_range(9)alloc_contig_frozen_pages(9)alloc_contig_pages(9)free_contig_frozen_range(9)free_contig_range(9)alloc_pages_nolock(9)
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
- 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