i915_gem_obj..._iter_get_sg(9)
π NAME π
okay so this page is all about i915_gem_object_page_iter_get_sg β a wrapper macro for __i915_gem_object_page_iter_get_sg() β and it lives in the Kernel API Manual under the extremely abbreviated title i915_gem_obj..._iter_get_sg(9). long function name, tiny page header, main character energy β¨
β¨ SYNOPSIS β¨
i915_gem_object_page_iter_get_sg (obj , it , n , offset );
π ARGUMENTS π
objβ the i915 GEM buffer object, bestie π«Άitβ the i915 GEM buffer object page iterator, yes specifically that kind of iterator πnβ the page offsetoffsetβ the searched physical offset; it will be used for returning the physical page offset value, no cap
πΈ CONTEXT πΈ
- she takes and releases the mutex lock of the
i915_gem_object_page_iterπ - she also takes and releases the RCU lock to search the
radix_treeofi915_gem_object_page_iterπ¦
literally locks on, locks off, searches the radix_tree, and keeps it moving.
β RETURN β
The target scatterlist pointer and the target page position. both of them, together, iconic. π
π¦ DESCRIPTION π¦
so here's the vibe check: in order to avoid the truncation of the input parameter, it checks the page offset n's type from the input parameter before calling __i915_gem_object_page_iter_get_sg. a little type check before the real call, so the input doesn't get truncated β iykyk. β¨
π 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_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_get_dma_address(9)i915_gem_object_pin_map(9)i915_gem_object_unpin_map(9)
the whole friend group is linked up, fr fr π«Ά
mwah π β this page comes from ./drivers/gpu/drm/i915/gem, dated October 2026, and the footer labels it i915_gem_obj..._iter_get_sg(9). slay and goodbye, bestie π
π¦ 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