STRUCT DRM_PAGEMAP_SHRINKER(9)
π struct drm_pagemap_shrinker(9) π
okay bestie, welcome to the Kernel API Manual for struct drm_pagemap_shrinker β literally the little shrinker that could, built to remove unused pagemaps. no cap, it's giving cleanup crew energy π§Ήβ¨
β¨ NAME β¨
struct drm_pagemap_shrinker β Shrinker to remove unused pagemaps π«Ά
πΈ SYNOPSIS πΈ
struct drm_pagemap_shrinker {
struct drm_device *drm;
spinlock_t lock;
struct list_head dpagemaps;
atomic_t num_dpagemaps;
struct shrinker *shrink;
};
π Members π
drmβ Pointer to the drm device. like, the main character device pointer fr fr πlockβ Spinlock to protect thedpagemapslist. gotta keep that list safe, bestie πdpagemapsβ List of unused dpagemaps. yes, the unused ones are literally just chilling here πnum_dpagemapsβ Number of unused dpagemaps indpagemaps. it's the count, periodt π’shrinkβ Pointer to thestruct shrinker. the shrinker itself, iconic π
π¦ SEE ALSO π¦
Kernel file ./drivers/gpu/drm/drm_pagemap_util.c and also:
struct drm_pagemap_cache(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_add(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)
bestie this page came from./drivers/gpu/drm, dated October 2026, and it's thestruct drm_pagemap_shrinker(9)manual. slay, you made it to the end π πβ¨
π¦ 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