DRM_GEM_DMA..._DUMB_CREATE(9)
π DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE β like, the DMA GEM driver ops one
okay bestie, welcome to the Kernel API Manual β¨ this one's a macro, it lives in ./include/drm/drm_gem_dma_helper.h, and honestly it's giving "shortcut queen" energy π
πΈ NAME πΈ
DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE β DMA GEM driver operations π
β¨ SYNOPSIS β¨
DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE (dumb_create_func );
literally one argument, that's it, she's low-maintenance π
π¦ ARGUMENTS π¦
dumb_create_funcβ the callback function for.dumb_create, no cap. that's the whole job bestie π«Ά
π DESCRIPTION π
so the way this works: this macro is your little shortcut for setting the default GEM operations inside the drm_driver structure. one line, all the defaults, slay β¨
but here's the tea β β this macro is a variant of DRM_GEM_DMA_DRIVER_OPS, specifically for drivers that override the default implementation of struct rm_driver.dumb_create. iykyk π
bestie, listen β use DRM_GEM_DMA_DRIVER_OPS if possible. fr fr. this one's only for when you're actually overriding stuff π
and if your driver needs a virtual address on imported buffers, then you should be using DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE instead. different macro, different vibe, don't mix them up π
β SEE ALSO β
- Kernel file
./include/drm/drm_gem_dma_helper.h struct drm_gem_dma_object(9)drm_gem_dma_object_free(9)drm_gem_dma_object_print_info(9)drm_gem_dma_object_get_sg_table(9)drm_gem_dma_object_mmap(9)DRM_GEM_DMA_DRIVER_OPS(9)DRM_GEM_DMA_DRIVER_OPS_VMAP_WITH_DUMB_CREATE(9)DRM_GEM_DMA_DRIVER_OPS_VMAP(9)DEFINE_DRM_GEM_DMA_FOPS(9)
like a whole friend group of related functions, go say hi to all of them π
mwah π that's the whole page! this one came out of ./include/drm, dated October 2026, and the page itself is DRM_GEM_DMA..._DUMB_CREATE(9) β go forth and configure your dumb buffers, bestie, you're gonna eat ππ¦π
π¦ 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