__i915_gem_object_get_sg(9)
πΈ __i915_gem_object_get_sg(9) πΈ
Okay bestie, welcome to the __i915_gem_object_get_sg(9) page from the Kernel API Manual. This is the helper that finds the target scatterlist pointer and the target page position using the pgoff_t n input argument and drm_i915_gem_object; it uses an internal shmem scatterlist lookup function. π«Ά
π NAME π
Let's get the vibe check out of the way: __i915_gem_object_get_sg is the helper that finds the target scatterlist pointer and the target page position using the pgoff_t n input argument and drm_i915_gem_object. It uses an internal shmem scatterlist lookup function. β¨
π SYNOPSIS π
struct scatterlist * __i915_gem_object_get_sg (struct
drm_i915_gem_object *obj , pgoff_t n , unsigned int *offset );
β¨ ARGUMENTS β¨
objβ thei915GEM buffer object. πnβ page offset. πΈoffsetβ the searched physical offset; it gets used for returning the physical page offset value. π
π DESCRIPTION π
Okay so it uses drm_i915_gem_object's internal shmem scatterlist lookup function as i915_gem_object_page_iter, and then it calls __i915_gem_object_page_iter_get_sg. No cap. π¦
Bestie, it is recommended to use the wrapper macro i915_gem_object_get_sg. Also see __i915_gem_object_page_iter_get_sg. π
π₯ RETURN π₯
It hands back the target scatterlist pointer and the target page position. Periodt. π₯
π 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_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)
This page is brought to you by the source/version line ./drivers/gpu/drm/i915/gem, dated October 2026, for __i915_gem_object_get_sg(9) β mwah! ππ«Άβ¨
π¦ 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