drm_pagemap_migrate_to_ram(9)
π drm_pagemap_migrate_to_ram(9) β¨
okay bestie, welcome to the Kernel API Manual β yes that's the manual we're in, and yes this page is about one very specific little function. let's get into it π«Ά
πΈ NAME πΈ
drm_pagemap_migrate_to_ram β the function that migrates a virtual range to RAM. it's a page fault handler, and honestly? it's giving cleanup crew energy π
β¨ SYNOPSIS β¨
vm_fault_t drm_pagemap_migrate_to_ram (struct vm_fault *vmf );
like, that's the whole signature. short, sweet, iconic π
π ARGUMENTS π
vmfβ a pointer to the fault information structure. it's literally the fault info, that's the vibe π¦
π DESCRIPTION π
so here's the tea β β this function is a page fault handler, and its whole job is migrating a virtual range to RAM.
and here's the part you cannot miss: the device memory allocation in which the device page is found is migrated in its entirety. not a little piece, not a snack-sized portion β the whole entire allocation. periodt π
π₯ RETURN π₯
VM_FAULT_SIGBUSβ that's the failure case π0β and that's the success case, slay π
π SEE ALSO π
the whole friend group, no cap β every single one of these is invited to the group chat:
- Kernel file
./drivers/gpu/drm/drm_pagemap.cOverview(9) - Migration(9)
struct drm_pagemap_zdd(9)drm_pagemap_zdd_alloc(9)drm_pagemap_zdd_get(9)drm_pagemap_zdd_destroy(9)drm_pagemap_zdd_put(9)drm_pagemap_migration_unlock_put_folio(9)drm_pagemap_migration_unlock_put_pages(9)drm_pagemap_get_devmem_page(9)drm_pagemap_migrate_map_device_private_pages(9)struct drm_pagemap_iova_state(9)drm_pagemap_migrate_map_system_pages(9)drm_pagemap_migrate_populate_src_pages(9)drm_pagemap_migrate_unmap_pages(9)struct migrate_range_loc(9)drm_pagemap_cpages(9)drm_pagemap_migrate_to_devmem(9)drm_pagemap_migrate_populate_ram_pfn(9)struct drm_pagemap_dev_hold(9)drm_pagemap_reinit(9)drm_pagemap_init(9)drm_pagemap_put(9)drm_pagemap_page_get_flags(9)drm_pagemap_page_set_flags(9)drm_pagemap_retire_migrated_pages(9)drm_pagemap_skip_retired_pages(9)drm_pagemap_evict_to_ram(9)__drm_pagemap_migrate_to_ram(9)drm_pagemap_folio_free(9)drm_pagemap_pagemap_ops_get(9)drm_pagemap_devmem_init(9)drm_pagemap_page_to_dpagemap(9)drm_pagemap_populate_mm(9)
okay that's the whole page, you ate that π one last lil sign-off: this cutie lives in ./drivers/gpu/drm, and it was dated October 2026 β main character energy fr fr π byeee π¦π
π¦ 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