drm_gem_dma_get_sg_table(9)
π drm_gem_dma_get_sg_table(9) π
okay bestie, welcome to the Kernel API Manual page for drm_gem_dma_get_sg_table β yes that's a whole mouthful, we're saying it together, one breath, let's go π¬οΈβ¨
πΈ NAME πΈ
drm_gem_dma_get_sg_table β literally here to provide a scatter/gather table of pinned pages for a DMA GEM object. that's the whole job. that's the assignment. she ate and left no crumbs π
π¦ SYNOPSIS π¦
struct sg_table * drm_gem_dma_get_sg_table (struct drm_gem_dma_object
*dma_obj );
like, read it out loud, it's giving function signature realness π
π ARGUMENTS π
dma_objβ a DMA GEM object. that's literally it, that's the whole parameter, no notes π«Ά
β¨ DESCRIPTION β¨
so what she does is: this function exports a scatter/gather table by calling the standard DMA mapping API. no cap, that's the vibe β the actual work is handled by the DMA mapping API, she's just the middlewoman making it happen ππ₯
π RETURN π
she hands you back a pointer to the scatter/gather table of pinned pages. and if things go sideways? NULL on failure. so likeβ¦ always check, bestie, always check ππ
π SEE ALSO π
the whole squad, fr fr β kernel file ./drivers/gpu/drm/drm_gem_dma_helper.c, plus:
dma helpers(9)__drm_gem_dma_create(9)drm_gem_dma_create(9)drm_gem_dma_create_with_handle(9)drm_gem_dma_free(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_prime_import_sg_table(9)drm_gem_dma_vmap(9)drm_gem_dma_mmap(9)drm_gem_dma_prime_import_sg_table_vmap(9)
like a group chat you never mute ππ
and that's the page!! π this little gem lives in ./drivers/gpu/drm, dated October 2026, and yeah it's from the Kernel API Manual β mwah, go read the source, ily, bye π§ββοΈβ
π¦ 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