drm_pagemap_zdd_destroy(9)
π drm_pagemap_zdd_destroy(9) β the Kernel API Manual page, bestie edition
okay so real talk, this is a page from the Kernel API Manual (section 9, the kernel-API girlies) and it's all about drm_pagemap_zdd_destroy β one tiny function that's lowkey doing the cleanup work behind the scenes. let's get into it π
β¨ NAME β¨
drm_pagemap_zdd_destroy β destroy a zdd structure. that's it, that's the vibe: it's the destroy-her era for a zdd π
β¨ SYNOPSIS β¨
void drm_pagemap_zdd_destroy (struct kref *ref );
she takes exactly one thing, returns nothing (void, my beloved no-return icon), and that's the whole signature. periodt.
πΈ ARGUMENTS πΈ
refβ pointer to the reference count structure. yep, astruct kref *, the reference count itself. hand her the kref and she knows what to do π«Ά
π¦ DESCRIPTION π¦
so here's the tea: this function queues the destroy_work of the zdd for asynchronous destruction. like, she doesn't do the destroying right this second β she schedules it, sets it up to happen on its own time. it's giving "i'll handle it later, trust" and honestly? iconic β¨
π SEE ALSO π
the whole friend group, fr fr β the drm_pagemap cinematic universe π
- 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_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_page_to_dpagemap(9)drm_pagemap_populate_mm(9)
like i said. the whole friend group. iykyk π
ngl bestie, if you're reading the SEE ALSO list and thinking "that's a lot of pagemap," you're so right and you're also doing amazing. read them in whatever order, no pressure π
and that's the page!! mwah π this lil number lives under ./drivers/gpu/drm and it's dated October 2026 β so yeah, future-coded, main character energy, catch her then. bye bestie, go destroy some zdd structures (asynchronously, obviously) π§ββοΈβ
π¦ 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