drm_pagemap_..._to_dpagemap(9)
π NAME π
drm_pagemap_page_to_dpagemap β okay so this one hands you back a pointer to the drm_pagemap of a page, bestie β¨ (this is from the Kernel API Manual, drm_pagemap_..._to_dpagemap(9), and it's lowkey iconic π)
π¦ SYNOPSIS π¦
struct drm_pagemap * drm_pagemap_page_to_dpagemap (struct page *page );
πΈ ARGUMENTS πΈ
pageβ thestruct page, bestie. that's it. that's the whole vibe π«Ά
π RETURN π
So what you get back is a pointer to the struct drm_pagemap of a device private page that was populated from the struct drm_pagemap. slay π
β οΈ But listen β if that page was not populated from a struct drm_pagemap, the result is undefined and the function call may result in dereferencing an invalid address π fr fr do not do this to yourself. the vibe check is not passing. π
π§ SEE ALSO π§
Go read the kernel file ./drivers/gpu/drm/drm_pagemap.c first, it's giving main character energy πβ¨ and then literally all of these:
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_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_populate_mm(9)
That's the whole page, no cap π and to send you off: ./drivers/gpu/drm, October 2026, drm_pagemap_..._to_dpagemap(9) β 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