drm_pagemap...grated_pages(9)
π drm_pagemap_retire_migrated_pages π
Okay bestie, welcome to the drm_pagemap...grated_pages(9) page from the Kernel API Manual β we're talking about drm_pagemap_retire_migrated_pages, the function that records migrated device-private folios. It's lowkey giving tiny-but-iconic, fr fr. π«Άβ¨
πΈ NAME πΈ
drm_pagemap_retire_migrated_pages β Record migrated device-private folios. That's the whole name vibe: it's the record-keeper for migrated device-private folios. π
β¨ SYNOPSIS β¨
Here's the signature, bestie β copy it exactly, no autocorrect shenanigans:
void drm_pagemap_retire_migrated_pages (unsigned long *src_pfns ,
unsigned long npages );
π ARGUMENTS π
src_pfnsβ the source array aftermigrate_vma_pagesormigrate_device_pages. Yes, that exact array. πnpagesβ the number of entries insrc_pfns, so the function knows how many lil' entries are in the group chat. π«Ά
π¦ DESCRIPTION π¦
Okay so here's the actual vibe, no cap: this function flags device-private folios that were successfully migrated to RAM before finalize unlocks the sources. The migrated state is stored in the physical folio β yes, the folio itself β so it survives later folio splits, and subsequent migrations can skip it. Periodt. π π₯
π SEE ALSO π
If you wanna keep the group chat going, these are the related pages, files, and structs:
- Kernel file:
./drivers/gpu/drm/drm_pagemap.c Overview(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_skip_retired_pages(9)drm_pagemap_evict_to_ram(9)__drm_pagemap_migrate_to_ram(9)drm_pagemap_folio_free(9)drm_pagemap_migrate_to_ram(9)drm_pagemap_pagemap_ops_get(9)drm_pagemap_devmem_init(9)drm_pagemap_page_to_dpagemap(9)drm_pagemap_populate_mm(9)
That's the whole page, bestie! π Cute little sign-off from source/version ./drivers/gpu/drm, dated October 2026, on drm_pagemap...grated_pages(9). Byeee β go record those migrated folios! ππ₯
π¦ 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