drm_gem_dma_free(9)
β¨ drm_gem_dma_free β¨
okay so bestie, welcome to the drm_gem_dma_free(9) page from the Kernel API Manual β it's giving "cleanup crew, but make it kernel" π
πΈ SYNOPSIS πΈ
void drm_gem_dma_free (struct drm_gem_dma_object *dma_obj );
π ARGUMENTS π
dma_objβ the DMA GEM object you're about to free. like, this is the object, no cap π«Ά
π¦ DESCRIPTION π¦
So here's the tea, bestie π: this function is the full send-off for a DMA GEM object. It does three very iconic things:
- frees the backing memory of the DMA GEM object π
- cleans up the GEM object state β¨
- frees the memory used to store the object itself π
and there's more β if the buffer is imported and the virtual address is set, it gets released too. the way that it handles all of that in one call is lowkey obsessed-worthy π
β SEE ALSO β
- Kernel file
./drivers/gpu/drm/drm_gem_dma_helper.cdma helpers(9) __drm_gem_dma_create(9)drm_gem_dma_create(9)drm_gem_dma_create_with_handle(9)drm_gem_dma_dumb_create_internal(9)drm_gem_dma_dumb_create(9)drm_gem_dma_get_unmapped_area(9)drm_gem_dma_print_info(9)drm_gem_dma_get_sg_table(9)drm_gem_dma_prime_import_sg_table(9)drm_gem_dma_vmap(9)drm_gem_dma_mmap(9)drm_gem_dma_prime_import_sg_table_vmap(9)
fr fr, if you're freeing something, make sure it's actually yours to free β this is a cleanup function, not a vibe check π§
and that's the whole page, bestie π it lives over in ./drivers/gpu/drm, dated October 2026, and it's part of the Kernel API Manual. slay, stay hydrated, and may your GEM objects always be freed exactly once πππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms