i915_gem_ob..._dma_address(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

So this is the page for i915_gem_object_get_dma_address β€” and bestie, it's literally just a wrapper macro for __i915_gem_object_get_dma_address. That's it, that's the whole name section πŸ’… (and yes, this whole page lives in the Kernel API Manual, iykyk πŸŽ€).


🌸 SYNOPSIS 🌸

i915_gem_object_get_dma_address (obj , n );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • obj β€” your i915 GEM buffer object, the main character of this whole situation πŸ‘‘
  • n β€” the page offset, like which page we're pointing at πŸ“

πŸ’– RETURN πŸ’–

It hands you back the bus addresses of the targeted DMA mapped scatterlist. That's the vibe β€” addresses, plural, bus-flavored ✨


🌈 DESCRIPTION 🌈

Okay so here's the why: in order to avoid the truncation of the input parameter (😭 the horror), it checks the page offset n's type from the input parameter before calling __i915_gem_object_get_dma_address. Type check first, then the call β€” that's the whole flex fr fr.

Also peep __i915_gem_object_page_iter_get_sg and __i915_gem_object_get_dma_address while you're here, they're part of the same little friend group 🫢


⭐ SEE ALSO ⭐

Kernel file ./drivers/gpu/drm/i915/gem/i915_gem_object.h β€” the source of truth, no cap πŸ“


✨ that's the whole page, bestie ✨ β€” sourced from ./drivers/gpu/drm/i915/gem, dated October 2026. Slay, go read some other manpages now, mwah πŸ“πŸ’œ

πŸ“¦ where this page comes from