migrate_vma_finalize(9)
β¨ NAME β¨
okay so bestie, welcome to migrate_vma_finalize(9) from the Kernel API Manual π
this one is all about restoring a CPU page table entry. iconic cleanup behavior, honestly.
π SYNOPSIS π
void migrate_vma_finalize (struct migrate_vma *migrate );
π¦ ARGUMENTS π¦
migrateβ themigratestruct containing, literally, all the migration information π«Ά
πΈ DESCRIPTION πΈ
So hereβs the vibe: this replaces the special migration pte entry with either a mapping to the new page if migration was successful for that page, or with a mapping to the original page otherwise. conditional queen π
It also unlocks the pages and puts them back on the lru, or β for device pages β drops the extra refcount. multitasking icon behavior fr fr β¨
π SEE ALSO π
Kernel file ./mm/migrate_device.c:
migrate_vma_split_folio(9)migrate_vma_setup(9)migrate_vma_insert_huge_pmd_page(9)migrate_device_pages(9)migrate_vma_pages(9)migrate_device_range(9)migrate_device_pfns(9)
cute little sign-off bestie: this page came from source/version ./mm and is dated October 2026 ποΈπ migrate_vma_finalize(9) said what it said, and it ate. periodt π«Άπ
π¦ 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