free_contig_range(9)
πΈ NAME πΈ
hey bestie!! welcome to the free_contig_range(9) page from the Kernel API Manual β this one is short and sweet, but the rule is very real. It's free_contig_range - - free the contiguous range of pages. π
β¨ SYNOPSIS β¨
okay so here's the signature, copy-paste exact vibes:
void free_contig_range (unsigned long pfn , unsigned long nr_pages );
π ARGUMENTS π
pfnβ the start PFN to free. That's your starting point, bestie. πnr_pagesβ the Number of contiguous pages to free. Yes, plural, contiguous, count 'em. π’
π DESCRIPTION π
Okay so listen: this can only be used to free the allocated non-compound pages. That's the whole assignment. Allocated non-compound pages, periodt. π
π¦ SEE ALSO π¦
Kernel file: ./mm/page_alloc.c. And here's the whole see-also friend group, every single one, no skipping:
__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)free_reserved_pages(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)alloc_pages_nolock(9)
mwah π β source: ./mm Β· date: October 2026 Β· page: free_contig_range(9). bye bestie, go free those contig pages responsibly π«Άβ¨
π¦ 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