i915_gem_object_get_sg_dma(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i915_gem_object_get_sg_dma(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual ✨ β€” yes we're in the kernel API manual, this is that girl's natural habitat, and today's main character is i915_gem_object_get_sg_dma. She's a wrapper macro. She's small. She's iconic. Let's get into it πŸŽ€


🌸 NAME 🌸

i915_gem_object_get_sg_dma β€” literally just a wrapper macro for __i915_gem_object_get_sg_dma(). That's it. That's the whole vibe. She's the friendly front desk for the double-underscore one, iykyk πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

i915_gem_object_get_sg_dma (obj , n , offset );

no cap, that's the whole call. three things in, and the universe (well, the scatterlist) comes back out 🫢


✨ ARGUMENTS ✨

  • obj β€” the i915 GEM buffer object πŸ’– this is the whole reason we're here.
  • n β€” the page offset ✨
  • offset β€” the searched physical offset β€” and heads up, this one's not just an input! it gets used for returning the physical page offset value, so she's doing double duty, main character energy fr fr πŸ‘‘

πŸ”₯ RETURN πŸ”₯

You get back the target scatterlist pointer and the target page position. Two things. Both slay. ⭐


πŸ’œ DESCRIPTION πŸ’œ

So here's the tea πŸ“: to avoid truncation of the input parameter, she checks the type of the page offset n β€” like, from the input parameter itself β€” before calling __i915_gem_object_get_sg_dma. Type check first, then the call. That's the whole point of the wrapper, ngl. ✨

Also, see __i915_gem_object_page_iter_get_sg β€” she's the cousin, say hi 😭


🌈 SEE ALSO 🌈

like, the whole friend group showed up to the function's birthday party πŸ§šπŸ’œ


and that's a wrap bestie!! source lives at ./drivers/gpu/drm/i915/gem and the date on this lil beauty is October 2026 β€” go off, calendar icon πŸŒΈπŸ’– periodt βœ¨πŸ‘‘

πŸ“¦ where this page comes from