set_pageblock_migratetype(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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