drm_pagemap_shrinker_add(9)
π drm_pagemap_shrinker_add(9) π
okay so this page is from the Kernel API Manual, bestie β and it's all about drm_pagemap_shrinker_add. Buckle up, it's a short one but the vibes are immaculate.
πΈ NAME πΈ
drm_pagemap_shrinker_add β add a drm_pagemap to the shrinker list, or destroy it. periodt.
β¨ SYNOPSIS β¨
void drm_pagemap_shrinker_add (struct drm_pagemap *dpagemap );
π ARGUMENTS π
dpagemapβ literally thedrm_pagemap. that's the whole argument, no cap.
π¦ DESCRIPTION π¦
here's the vibe check: if dpagemap is associated with a struct drm_pagemap_cache AND the struct device backing the drm device is still alive, then dpagemap gets added to the struct drm_pagemap_shrinker list of shrinkable drm_pagemaps. slay.
otherwise, it destroys the pagemap directly using drm_pagemap_destroy. yeah, it said what it said.
π¨ important bestie alert: this is an internal function which is not intended to be exposed to drivers. do not come for drivers with this one, fr fr.
π₯ SEE ALSO π₯
- Kernel file:
./drivers/gpu/drm/drm_pagemap_util.c struct drm_pagemap_cache(9)struct drm_pagemap_shrinker(9)drm_pagemap_cache_create_devm(9)Cache lookup(9)drm_pagemap_cache_lock_lookup(9)drm_pagemap_cache_unlock_lookup(9)drm_pagemap_get_from_cache(9)drm_pagemap_cache_set_pagemap(9)drm_pagemap_get_from_cache_if_active(9)drm_pagemap_shrinker_might_lock(9)drm_pagemap_shrinker_create_devm(9)struct drm_pagemap_owner(9)drm_pagemap_release_owner(9)interconnect_fn(9)drm_pagemap_acquire_owner(9)
cute little sign-off: source path ./drivers/gpu/drm, date October 2026, and the page is drm_pagemap_shrinker_add(9) β 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