alloc_pages_mpol(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 distinguishes alloc_pages πŸ¦‹
  • nid β€” preferred node, usually numa_node_id but mpol may override it 🌸

πŸ”₯ RETURN πŸ”₯

The page on success, or NULL if allocation fails. That's it β€” page or no page, no cap πŸ˜­πŸ’€

🌈 SEE ALSO 🌈


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