__i915_gem_o..._iter_get_sg(9)
β¨ NAME β¨
okay bestie, welcome to the Kernel API Manual π you're looking at the page for __i915_gem_object_page_iter_get_sg β the header up top truncates it all dramatic as __i915_gem_o..._iter_get_sg(9), but we're using the full name here. No cap, this one is a helper to find the target scatterlist pointer and the target page position using the pgoff_t n input argument and i915_gem_object_page_iter.
π¦ SYNOPSIS π¦
struct scatterlist * __i915_gem_object_page_iter_get_sg (struct
drm_i915_gem_object *obj , struct i915_gem_object_page_iter *iter ,
pgoff_t n , unsigned int *offset );
that's the signature, copy it exactly, don't freestyle it β¨
π ARGUMENTS π
objβ the i915 GEM buffer objectiterβ the i915 GEM buffer object page iteratornβ page offsetoffsetβ the searched physical offset; it will be used for returning the physical page offset value
π₯ CONTEXT π₯
Lock behavior, bestie, pay attention: it takes and releases the mutex lock of the i915_gem_object_page_iter π«Ά it also takes and releases the RCU lock to search the radix_tree of the i915_gem_object_page_iter β¨
πΈ RETURN πΈ
It returns the target scatterlist pointer and the target page position. That's the return vibe β both of those π
π DESCRIPTION π
Recommended to use wrapper macro: i915_gem_object_page_iter_get_sg β that's the manual's whole recommendation, and honestly bestie, just use the wrapper macro ππ
π 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)
xoxo, signing off from source ./drivers/gpu/drm/i915/gem, October 2026 edition π«Άπ
π¦ 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