STRUCT MIGRATE_RANGE_LOC(9)
π struct migrate_range_loc(9) π
okay bestie, welcome to the Kernel API Manual β we're talking about struct migrate_range_loc(9) and it is literally giving cursor energy in the best way. Not a mouse cursor. A struct cursor. Iconic. π«Ά
β¨ NAME β¨
struct migrate_range_loc β the cursor into the loop over migrate_pfns for migrating to device. That's the whole vibe, no cap. π
πΈ SYNOPSIS πΈ
struct migrate_range_loc {
unsigned long start;
struct device *device;
struct drm_pagemap *dpagemap;
const struct drm_pagemap_devmem_ops *ops;
};
π Members π
startβ the current loop index. Your little loop-position bestie. β¨deviceβ the migrating device. πdpagemapβ pointer tostruct drm_pagemapused by the migrating device. π«Άopsβ the copy ops to be used for the migrating device. π
π¦ SEE ALSO π¦
okay so the Kernel file is ./drivers/gpu/drm/drm_pagemap.c, and here are all the related icons β every single one, no skipping, because we donβt do that here: π
- 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)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_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)
okay thatβs the whole page, bestie β source/version: ./drivers/gpu/drm, date: October 2026, and yeah, struct migrate_range_loc(9) is the main character. mwah ππ
π¦ 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