set_pageblock_migratetype(9)
π set_pageblock_migratetype(9) β the kernel API manual page, bestie edition
okay so this is set_pageblock_migratetype(9) from the Kernel API Manual and honestly? iconic little function. let's get into it β¨
π NAME π
set_pageblock_migratetype β literally just: set the migratetype of a pageblock. that's the whole vibe. no cap.
β¨ SYNOPSIS β¨
void set_pageblock_migratetype (struct page *page , enum migratetype
migratetype );
like look at her. void, two args, zero drama. main character energy fr fr π«Ά
πΈ ARGUMENTS πΈ
pageβ the page within the block of interest π β not the block itself, bestie, the page inside it. read the room.migratetypeβ the migratetype you want to set. yes, that's it. that's the whole job. go off π
π¦ SEE ALSO π¦
a whole friend group, honestly. the kernel file ./mm/page_alloc.c and everyone she hangs with:
__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)__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)free_contig_range(9)alloc_pages_nolock(9)
not me listing all 26 of them π but every single one is here, so we ate. π
and that's the page!! π§ββοΈ sourced straight outta ./mm, dated October 2026, and signed off with set_pageblock_migratetype(9) on the footer like the little legend she is. mwah ππ
π¦ 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