__i915_gem_object_get_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 __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 β€” the i915 GEM 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


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