i915_gem_object_get_page(9)
β¨ i915_gem_object_get_page β¨
okay so first things first, this is a page from the Kernel API Manual (yes, the kernel has a manual, and yes it's giving very much "the library is open" energy π). The function itself is i915_gem_object_get_page(9) and honestly bestie, the NAME section is gonna tell you everything you need:
πΈ NAME πΈ
i915_gem_object_get_page β it's a wrapper macro for __i915_gem_object_get_page. that's it. that's the whole vibe. it's the cute little entrance to the real function, like a bouncer who's just checking your ID before letting you into the club π«Ά
π SYNOPSIS π
i915_gem_object_get_page (obj , n );
look at her. two arguments, one semicolon, zero notes. iconic β¨
π ARGUMENTS π
objβ your i915 GEM buffer object. the whole point of the operation, the main character of this story πnβ the page offset. which page are we grabbing? you tell it. be specific, bestie π
π₯ RETURN π₯
it hands you back the target page pointer. that's the prize. you asked for a page, you get a page. slay π¦
π DESCRIPTION π
okay so here's the tea β β the whole reason this wrapper macro even exists is to avoid truncation of the input parameter. like, that's literally its job. before it calls __i915_gem_object_get_page, it checks the page offset n's type from the input parameter β just making sure the type is right so nothing gets chopped off or lost in translation, no cap π
and also, definitely peep __i915_gem_object_page_iter_get_sg while you're here. iykyk β¨
π SEE ALSO π
the kernel file lives right here, bestie, go read it fr fr:
./drivers/gpu/drm/i915/gem/i915_gem_object.h
and the whole friend group, because this function does NOT exist in isolation π§:
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(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_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)
like literally the entire i915 GEM extended universe is in here. bring snacks π
and that's the page!! sourced straight from ./drivers/gpu/drm/i915/gem, dated October 2026 β sooo futuristic of her, we love a forward-thinking queen π
π go get those page pointers bestie, you got this π
π¦ 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