i915_gem_object_get_sg_dma(9)
π 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 π
- Kernel file
./drivers/gpu/drm/i915/gem/i915_gem_object.hπ 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_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_get_dma_address(9)i915_gem_object_pin_map(9)i915_gem_object_unpin_map(9)
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
- 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