mpol_misplaced(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so this page is all about mpol_misplaced(9) from the Kernel API Manual, and the whole point is to check whether current folio node is valid in policy. slay. πŸ’…


✨ SYNOPSIS ✨

int mpol_misplaced (struct folio *folio , struct vm_fault *vmf ,
       unsigned long addr );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio to be checked, bestie πŸ‘€
  • vmf β€” structure describing the fault, literally the fault lore
  • addr β€” virtual address in vma for shared policy lookup and interleave policy

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: it lookups the current policy node id for vma,addr and then β€œcompare to” folio's node id. Policy determination β€œmimics” alloc_page_vma. It's called from fault path where we know the vma and faulting address. iykyk. ✨


🌸 RETURN 🌸

It returns NUMA_NO_NODE if the page is in a node that is valid for this policy, or a suitable node ID to allocate a replacement folio from. periodt. πŸ’–


🌈 SEE ALSO 🌈


okay bye bestie 🫢 β€” this one comes from source/version ./mm, dated October 2026. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from