migrate_vma_split_folio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

migrate_vma_split_folio(9) from the Kernel API Manual β€” okay bestie, let's get into it πŸ’–

🌸 NAME 🌸

migrate_vma_split_folio β€” the helper function that splits a THP folio. That's literally what it does, no cap 🫢

✨ SYNOPSIS ✨

int migrate_vma_split_folio (struct folio *folio , struct page
       *fault_page );

πŸŽ€ ARGUMENTS πŸŽ€

  • folio β€” the folio to split, bestie 🌸
  • fault_page β€” the struct page associated with the fault if any πŸ¦‹

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea: if folio is not the folio containing fault_page, then the caller must hold a reference on folio. The helper consumes that reference. Yes, it takes it β€” that's the whole vibe 😭

Returns 0 on success ✨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./mm/migrate_device.c β€” and the whole squad is:

xoxo, source ./mm, dated October 2026 πŸ’œβœ¨

πŸ“¦ where this page comes from