drm_pagemap_reinit(9)
π drm_pagemap_reinit(9) β reinit that pagemap, bestie
okay so this is a page from the Kernel API Manual, and it's about drm_pagemap_reinit β¨ it's short, it's sweet, it's giving "one job and it does it." let's get into it π«Ά
πΈ NAME πΈ
drm_pagemap_reinit β Reinitialize a drm_pagemap π
β¨ SYNOPSIS β¨
int drm_pagemap_reinit (struct drm_pagemap *dpagemap );
like yes that's the whole signature, she's compact π
π¦ ARGUMENTS π¦
dpagemapβ thedrm_pagemapyou're reinitializing. that's it. that's the argument. the main character of this function, fr fr π
π₯ DESCRIPTION π₯
So you're reinitializing a drm_pagemap β but listen, only one where drm_pagemap_release has already been called. that's the vibe check, don't skip it π
This interface is literally intended for the situation where the driver caches a destroyed drm_pagemap. like the driver held onto it instead of letting it go, and now it wants to bring it back to life. reanimation arc, iconic behavior π§β¨
π RETURN π
0on success π- a negative error code on failure π
no cap, that's the whole return contract.
π SEE ALSO π
okay this list is long long, so buckle up bestie β here's the whole squad, everybody gets named, no one gets left out π
- 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_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)
like I said. the whole squad. ate π
fr fr go read drm_pagemap_release first if you haven't, because reinit without a prior release is not the move π
and that's the page, bestie β brought to you by ./drivers/gpu/drm, dated October 2026, in the drm_pagemap_reinit(9) era π stay hydrated, read your kernel docs, 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