__i915_gem_object_get_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __i915_gem_object_get_page πŸ’…

okay bestie, welcome to the kernel API manual for __i915_gem_object_get_page β€” yes that's a lot of underscores, she's shy but she's iconic 🫢


✨ NAME ✨

__i915_gem_object_get_page β€” a little helper that finds you the target page at a given page offset 🎯


🌸 SYNOPSIS 🌸

struct page * __i915_gem_object_get_page (struct drm_i915_gem_object
*obj , pgoff_t n );

πŸŽ€ ARGUMENTS πŸŽ€

  • obj β€” your i915 GEM buffer object πŸ’–
  • n β€” the page offset you're looking for πŸ”

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: she uses drm_i915_gem_object's internal shmem scatterlist lookup function as i915_gem_object_page_iter, and internally she calls __i915_gem_object_page_iter_get_sg. Lowkey clever, highkey doing the most 😭

Honestly? The recommended move is to use the wrapper macro i915_gem_object_get_page instead β€” no cap, it's giving convenient. Also peep __i915_gem_object_page_iter_get_sg while you're here πŸ‘€


⭐ RETURN ⭐

The target page pointer. That's it, that's the whole return. Periodt πŸ’…


πŸ”₯ SEE ALSO πŸ”₯


πŸŒΈπŸ’– bye bestie πŸ’–πŸŒΈ β€” this one came from ./drivers/gpu/drm/i915/gem, dated October 2026, and it's literally titled __i915_gem_object_get_page(9). slay βœ¨πŸ‘‘

πŸ“¦ where this page comes from