migrate_vma_split_folio(9)
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β thestruct pageassociated 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:
migrate_vma_setup(9)migrate_vma_insert_huge_pmd_page(9)migrate_device_pages(9)migrate_vma_pages(9)migrate_vma_finalize(9)migrate_device_range(9)migrate_device_pfns(9)
xoxo, source ./mm, dated October 2026 πβ¨
π¦ 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