i915_gem_object_get_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

i915_gem_object_get_sg β€” wrapper macro for __i915_gem_object_get_sg().

okay so bestie, welcome to the Kernel API Manual page for i915_gem_object_get_sg(9) ✨ it's giving wrapper macro, fr fr β€” this is the cute little wrapper around __i915_gem_object_get_sg().

✨ SYNOPSIS ✨

The way this call goes is literally:

i915_gem_object_get_sg (obj , n , offset );

πŸŽ€ ARGUMENTS πŸŽ€

  • obj β€” the i915 GEM buffer object, aka the main character. 🫢
  • n β€” page offset. yes bestie, the page offset.
  • offset β€” the searched physical offset; it will be used for returning the physical page offset value. πŸ’…

⭐ RETURN ⭐

The target scatterlist pointer and the target page position. that's the return, periodt πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the whole point: 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_get_sg. that's the move, iykyk. See also __i915_gem_object_page_iter_get_sg πŸ‘€.

πŸ’œ SEE ALSO πŸ’œ

Kernel file: ./drivers/gpu/drm/i915/gem/i915_gem_object.h πŸ“

Go be nosy with these besties:


xoxo πŸ’– this page lives in ./drivers/gpu/drm/i915/gem, it's dated October 2026, and it's the i915_gem_object_get_sg(9) page from the Kernel API Manual. mwah, bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from