alloc_pages_mpol(9)
β¨ NAME β¨
alloc_pages_mpol β Allocate pages according to NUMA mempolicy. Welcome to the Kernel API Manual, bestie; this is the alloc_pages_mpol(9) page, and we are absolutely making it make sense π
β¨
π SYNOPSIS π
struct page * alloc_pages_mpol (gfp_t gfp , unsigned int order , struct
mempolicy *pol , pgoff_t ilx , int nid );
π ARGUMENTS π
gfpβ the GFP flags, aka the flags situation for this allocation β¨orderβ the order of the page allocation. That's the size vibe, bestie π«Άpolβ pointer to the NUMA mempolicy πilxβ index for interleave mempolicy β also distinguishesalloc_pagesπ¦nidβ preferred node, usuallynuma_node_idbutmpolmay override it πΈ
π₯ RETURN π₯
The page on success, or NULL if allocation fails. That's it β page or no page, no cap ππ
π SEE ALSO π
- Kernel file
./mm/mempolicy.c numa_nearest_node(9)nearest_node_nodemask(9)folio_can_map_prot_numa(9)vma_alloc_folio(9)alloc_pages(9)mpol_misplaced(9)mpol_shared_policy_init(9)mpol_parse_str(9)mpol_to_str(9)
okay bestie that's the whole page π«Ά source/version is ./mm, the date is October 2026, and the footer title is alloc_pages_mpol(9) β 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