__i915_gem_o...t_get_sg_dma(9)
π __i915_gem_object_get_sg_dma β the Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual, and it's about one very specific little helper function. she's a lowercase legend, ngl.
β¨ NAME β¨
__i915_gem_object_get_sg_dma β the helper that finds the target scatterlist pointer and the target page position, using a pgoff_t n input argument plus a drm_i915_gem_object. lowkey she does the work by using an internal DMA mapped scatterlist lookup function. π
πΈ SYNOPSIS πΈ
struct scatterlist * __i915_gem_object_get_sg_dma (struct
drm_i915_gem_object *obj , pgoff_t n , unsigned int *offset );
like literally that's the whole signature, copy it exactly, periodt.
π¦ ARGUMENTS π¦
objβ the i915 GEM buffer object. the main character of the argument list fr fr πnβ page offset. that's it, that's the vibe πoffsetβ the searched physical offset, and she's going to be used for returning the physical page offset value. so she's an out-param, iykyk π«Ά
π§ DESCRIPTION π§
so here's the tea: this function uses drm_i915_gem_object's internal DMA mapped scatterlist lookup function as i915_gem_object_page_iter, and then it calls __i915_gem_object_page_iter_get_sg. that's the whole pipeline bestie, no cap. β¨
π‘ it's recommended to use the wrapper macroi915_gem_object_get_sg_dma. like, she's right there. also go see__i915_gem_object_page_iter_get_sgβ linked besties, obviously.
β RETURN β
the target scatterlist pointer and the target page position. she gives you both, because she's generous like that π
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/i915/gem/i915_gem_object.hβ go read her source, bestie π 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)
that's the whole squad, the entire friend group, no one left behind π
π cute lil sign-off π
this page lives at ./drivers/gpu/drm/i915/gem, dated October 2026, and it's literally __i915_gem_object_get_sg_dma(9) from the Kernel API Manual again at the bottom because she said her name twice, iconic behavior π
β¨π¦πΈπ«Άπ
π¦ 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