drm_pagemap_shrinker_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the drm_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 πŸ”₯


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