drm_gem_dma...get_sg_table(9)
β¨ drm_gem_dma_object_get_sg_table(9) β¨
okay so this is from the Kernel API Manual and it's literally the glow-up guide for one tiny GEM object function, let's get into it π
πΈ NAME πΈ
drm_gem_dma_object_get_sg_table β the GEM object function for drm_gem_dma_get_sg_table() π«Ά
β¨ SYNOPSIS β¨
struct sg_table * drm_gem_dma_object_get_sg_table (struct drm_gem_object
*obj );
π ARGUMENTS π
objβ the GEM object, bestie. that's it, that's the whole vibe.
π DESCRIPTION π
So what does this little icon actually do? It wraps drm_gem_dma_get_sg_table. π¦
And here's the main character energy part: drivers that employ the DMA helpers should use it as their drm_gem_object_funcs.get_sg_table handler. Like, that's its whole job in the group chat β no cap.
π RETURN π
It hands you back a pointer to the scatter/gather table of pinned pages π« β¦ or NULL on failure π (yes, you have to check. always check.)
π₯ SEE ALSO π₯
- Kernel file
./include/drm/drm_gem_dma_helper.hstructdrm_gem_dma_object(9) drm_gem_dma_object_free(9)drm_gem_dma_object_print_info(9)drm_gem_dma_object_mmap(9)DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE(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)
fr fr go read those too, they're all connected ππ
and that's the whole page bestie π sign-off time: this one lives in ./include/drm, it's the October 2026 edition, and it's literally iconic βπ no notes.
π¦ 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