drm_gem_put_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gem_put_pages(9) β€” Kernel API Manual ✨

okay so bestie, welcome to drm_gem_put_pages(9), straight out of the Kernel API Manual. it's a lil helper function living its best life in DRM land and honestly? it's giving cleanup crew energy πŸ§ΉπŸ’–


🌸 NAME 🌸

drm_gem_put_pages β€” the helper that frees the backing pages for a GEM object, no cap 🫢


✨ SYNOPSIS ✨

void drm_gem_put_pages (struct drm_gem_object *obj , struct page **pages
, bool dirty , bool accessed );

like, that's the whole signature. four args, one void return, zero drama πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • obj β€” the obj in question πŸ‘€ like, the GEM object we're talking about here
  • pages β€” the pages to free, bye bestie πŸ¦‹
  • dirty β€” if true, the pages will be marked as dirty (yes, literally, that's the whole vibe)
  • accessed β€” if true, the pages will be marked as accessed ⭐

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/drm_gem.c β€” go read it, iykyk πŸ“–

and then the whole friend group, in order, because we do not skip anyone at this table:


lowkey the whole DRM GEM cinematic universe is linked above. drm_gem_get_pages(9) is literally right there if you need the ✨opposite✨ function. slay 🌈

and that's the page, bestie πŸŽ€ this lil number comes from ./drivers/gpu/drm, dated October 2026 β€” periodt, see u next time πŸ’œ

πŸ“¦ where this page comes from