memblock_free_all(9)
π memblock_free_all(9) π
okay so this is a page from the Kernel API Manual β yes bestie, the kernel has its own manual and this is one of its little entries. it's called memblock_free_all, and honestly? it's the moment the memblock allocator finally lets go and hands all the free pages over to the buddy allocator. it's giving graduation day πβ¨
πΈ NAME πΈ
memblock_free_all β release free pages to the buddy allocator
like, that's the whole job. nothing sneaky. memblock has been hoarding pages since boot, and this is where it's like "okay, they're yours now" and passes the free ones over to the buddy allocator π«Ά
β¨ SYNOPSIS β¨
void memblock_free_all (void );
yep, that's it. void in, void out. no parameters, no return value, no drama π
π ARGUMENTS π
voidβ no arguments. literally zero. she takes nothing and returns nothing. main character energy, no notes π
π¦ SEE ALSO π¦
okay this is the part where the memblock cinematic universe shows up, and there are so many entries. buckle up, bestie, we're going through the whole friend group π
Kernel file ./mm/memblock.cβ the actual source file, and alsomemblock overview(9)for the big-picture lore__memblock_find_range_bottom_up(9)__memblock_find_range_top_down(9)memblock_find_in_range_node(9)memblock_find_in_range(9)memblock_discard(9)memblock_double_array(9)memblock_merge_regions(9)memblock_insert_region(9)memblock_add_range(9)memblock_add_node(9)memblock_add(9)memblock_validate_numa_coverage(9)memblock_isolate_range(9)memblock_free(9)memblock_phys_free(9)memblock_setclr_flag(9)memblock_mark_hotplug(9)memblock_clear_hotplug(9)memblock_mark_mirror(9)memblock_mark_nomap(9)memblock_clear_nomap(9)memblock_reserved_mark_noinit(9)memblock_reserved_mark_kern(9)memblock_mark_kho_scratch(9)memblock_clear_kho_scratch(9)__next_mem_range(9)__next_mem_range_rev(9)memblock_set_node(9)memblock_alloc_range_nid(9)memblock_phys_alloc_range(9)memblock_phys_alloc_try_nid(9)memblock_alloc_internal(9)memblock_alloc_exact_nid_raw(9)memblock_alloc_try_nid_raw(9)memblock_alloc_hugetlb(9)memblock_alloc_try_nid(9)__memblock_alloc_or_panic(9)memblock_estimated_nr_free_pages(9)memblock_is_region_memory(9)memblock_is_region_reserved(9)reserve_mem_find_by_name(9)reserve_mem_release_by_name(9)
like I said. entire extended family at the cookout π and every single one of them is a real reference, no cap β go read them if you want the full memblock lore, iykyk π
lowkey the cutest part is that all of these live over in ./mm πΈ
and that's the page, bestie! this one's from the ./mm source tree, dated October 2026, and it's filed under memblock_free_all(9) β go forth and free those pages ππ§β¨
π¦ 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