__i915_gem_o..._iter_get_sg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 object
  • iter β€” the i915 GEM buffer object page iterator
  • n β€” page offset
  • offset β€” 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


xoxo, signing off from source ./drivers/gpu/drm/i915/gem, October 2026 edition πŸ«ΆπŸ’–

πŸ“¦ where this page comes from