__i915_gem_..._dma_address(9)
π
__i915_gem_..._dma_address(9) β a Kernel API Manual moment β¨
okay so bestie, you're in the Kernel API Manual and this page is literally all about one tiny helper that goes digging for bus addresses. it's giving "small function, big friend group" energy. let's get into it π«Ά
β¨ NAME β¨
__i915_gem_object_get_dma_address β the helper that grabs the bus addresses of a targeted DMA-mapped scatterlist out of an i915 GEM buffer object π
like, that's the whole job. it's a helper. it helps. it's helpful. iconic behavior honestly π
π¦ SYNOPSIS π¦
dma_addr_t __i915_gem_object_get_dma_address (struct drm_i915_gem_object
*obj , pgoff_t n );
that's it. that's the whole vibe check. a dma_addr_t in the front, two arguments in the back, no cap π
π ARGUMENTS π
objβ your i915 GEM buffer object. the main character of this operation, no notes πnβ the page offset. yes queen, tell her which page you're obsessed with πΈ
β RETURN β
it hands you back the bus addresses of the targeted DMA-mapped scatterlis π¬
that's the return value. that's what you get. go off, dma_addr_t π
π₯ DESCRIPTION π₯
so like β the manual is very clear about this one: they recommend you use the wrapper macro i915_gem_object_get_dma_address. like, they're not yelling, but they are saying it π it's the nicer, safer-looking door to walk through, bestie πͺβ¨
also! they literally say See also __i915_gem_object_page_iter_get_sg and __i915_gem_object_get_sg_dma β so if you wanna go deeper down the rabbit hole, those two are right there waiting for you ππ³οΈ
ngl, this function is lowkey the "ask the friend who actually knows the address" of the i915 gem world π§
π SEE ALSO π
- Kernel file:
./drivers/gpu/drm/i915/gem/i915_gem_object.hβ the mothership, the source, the origin story ππ« i915_gem_object_lookup_rcu(9)__i915_gem_object_page_iter_get_sg(9)i915_gem_object_page_iter_get_sg(9)__i915_gem_object_get_sg(9)i915_gem_object_get_sg(9)__i915_gem_object_get_sg_dma(9)i915_gem_object_get_sg_dma(9)__i915_gem_object_get_page(9)i915_gem_object_get_page(9)__i915_gem_object_get_dirty_page(9)i915_gem_object_get_dirty_page(9)__i915_gem_object_get_dma_address_len(9)i915_gem_object_get_dma_address_len(9)i915_gem_object_get_dma_address(9)i915_gem_object_pin_map(9)i915_gem_object_unpin_map(9)
that's the whole friend group right there π«π every single one of them, accounted for, nobody left on read π
π warning-ish note, bestie: the manpage uses a double-underscore name for a reason β this is the inner helper. the DESCRIPTION says use the wrapper macro i915_gem_object_get_dma_address and honestly? listen to her. she knows. π
and that's a wrap on this one, bestie!! πβ¨ source vibes came from ./drivers/gpu/drm/i915/gem, stamped October 2026, and it all lives under the name __i915_gem_..._dma_address(9) β mwah, slay, periodt π
π
π¦ 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