drm_pagemap_cpages(9)
π drm_pagemap_cpages(9) π
okay bestie, welcome to the Kernel API Manual page for drm_pagemap_cpages(9). The title is drm_pagemap_cpages, the manual name is Kernel API Manual, and the whole assignment is Count collected pages. No cap. πβ¨
πΈ NAME πΈ
drm_pagemap_cpages β Count collected pages. That's the entire name section, bestie: it counts collected pages and it is not trying to be mysterious about it. π
π¦ SYNOPSIS π¦
int drm_pagemap_cpages (unsigned long *migrate_pfn , unsigned long
npages );
okay so it returns an int, and it takes unsigned long *migrate_pfn plus unsigned long npages. Slay. π
π ARGUMENTS π
migrate_pfnβ array ofmigrate_pfnentries to account. It's giving "here are the entries, pls account for them." π«Άnpagesβ number of entries inmigrate_pfn. Basically the entry count, bestie. π¦
π₯ DESCRIPTION π₯
Compute the total number of minimum-sized pages represented by the collected entries in migrate_pfn. The total is derived from the order encoded in each entry. That's the whole bit β no extra lore, no secret extra parameters. π
β RETURN β
Total number of minimum-sized pages. That's what you get back, and it's an int per the synopsis. π
π SEE ALSO π
okay so the related-pages list has main character energy and we are not skipping it. The kernel file is ./drivers/gpu/drm/drm_pagemap.c, and here are all the references:
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_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)
and that's the footer, bestie: source ./drivers/gpu/drm, date October 2026, and page drm_pagemap_cpages(9) from the Kernel API Manual. bye, go count those collected pages ππβ¨
π¦ 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