drm_gem_dma_object_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gem_dma_object_free(9) β€” from the Kernel API Manual, bestie ✨

Okay so real talk, this one's a tiny little function but she's important, so let's get into it πŸŽ€


🌸 NAME 🌸

drm_gem_dma_object_free β€” the GEM object function for drm_gem_dma_free(), no cap πŸ’–


✨ SYNOPSIS ✨

void drm_gem_dma_object_free (struct drm_gem_object *obj );

That's it. That's the whole signature. Short king πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • obj β€” the GEM object we're freeing, aka the thing getting yeeted πŸ—‘οΈβœ¨

πŸ’œ DESCRIPTION πŸ’œ

So here's the tea: this function wraps drm_gem_dma_free_object. That's literally her whole job and she does it flawlessly πŸ’…

If you're a driver that employs the DMA helpers, then you should use this as your drm_gem_object_funcs.free handler. Like, that's the assignment. That's what she's for. Periodt 🫢


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/drm/drm_gem_dma_helper.h struct, plus the whole friend group 🧚:

iykyk πŸ‘‘


ngl this page lives in ./include/drm, it's dated October 2026, and it ships with the Kernel API Manual. Slay, see u next time bestie πŸ’–πŸŒˆβ­
πŸ“¦ where this page comes from