drm_gem_dma_get_sg_table(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

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