drm_pagemap_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_pagemap_put(9) ✨

okay so bestie, we're in the Kernel API Manual today and this one is short but it matters β€” it's the polite little goodbye function for pagemap references. Let's get into it 🫢


🌸 NAME 🌸

drm_pagemap_put β€” put a struct drm_pagemap reference (yes, it's literally the "drop the ref" moment, and yes, you need it)


⭐ SYNOPSIS ⭐

void drm_pagemap_put (struct drm_pagemap *dpagemap );

πŸŽ€ ARGUMENTS πŸŽ€

  • dpagemap β€” a pointer to a struct drm_pagemap object. that's the vibe. that's the whole argument list. πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does: it puts a struct drm_pagemap reference β€” meaning it drops one refcount β€” and if that refcount hits zero, the drm_pagemap object gets freed. no cap. last one out turns off the lights πŸ”₯

lowkey important: this is the release-side counterpart to grabbing a reference, so don't just call it for fun or you'll be freeing things that still have friends 😭

πŸ’œ SEE ALSO πŸ’œ

the whole friend group, bestie β€” go read these too:


and that's the page, bestie!! this one lives at ./drivers/gpu/drm and it's dated October 2026 β€” so like, future iconic behavior πŸ’…βœ¨ go forth and put your refs responsibly, ily πŸ§šπŸ’–

πŸ“¦ where this page comes from