STRUCT DRM_PAGEMAP_SHRINKER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the dpagemaps list. 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 in dpagemaps. it's the count, periodt πŸ”’
  • shrink β€” Pointer to the struct shrinker. the shrinker itself, iconic πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/gpu/drm/drm_pagemap_util.c and also:


bestie this page came from ./drivers/gpu/drm, dated October 2026, and it's the struct drm_pagemap_shrinker(9) manual. slay, you made it to the end πŸ’…πŸ’–βœ¨
πŸ“¦ where this page comes from