i915_gem_ob..._struct_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

i915_gem_object_has_struct_page β€” bestie, this is the vibe check that tells you whether the object is page-backed ✨

So like, it's the Kernel API Manual entry (yes, that's the manual name, we're fancy here πŸŽ€), and it's literally just asking one tiny question about a GEM object: does it have a struct page situation going on or not? Iconic, low-effort, high-value. πŸ¦‹


✨ SYNOPSIS ✨

bool i915_gem_object_has_struct_page (const struct drm_i915_gem_object
       *obj );

🫢 ARGUMENTS 🫢

  • obj β€” the object you're interrogating πŸ‘€. This is the const struct drm_i915_gem_object you want to query. That's it. That's the whole argument list. Slay.

🌸 DESCRIPTION 🌸

Okay so this is the important part, don't skip it πŸ™ˆ β€” this function should only be called while the object is locked or pinned. Like, only only. Because otherwise the page backing may change right out from under the caller mid-query, and that's giving chaos energy, not main character energy. πŸ’€

Lock it or pin it first, bestie. No cap. The backing can literally shift under you if you don't. 😭

πŸ”₯ RETURN πŸ”₯

  • Returns True if the object is page-backed πŸ’–
  • Returns false otherwise 🫢

That's the whole answer. Binary. Clean. Periodt. πŸ‘‘


🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/i915/gem/i915_gem_object.c β€” go read it, iykyk πŸ“–

And the whole friend group of related calls (we love a linked list of references, honestly obsessed):


and that's the whole page, bestie πŸ§šπŸ’œ

Cute little sign-off so you know where this came from: it's from ./drivers/gpu/drm/i915/gem, dated October 2026, and it's the i915_gem_ob..._struct_page(9) page β€” yes the title is truncated in the middle like that, not me being dramatic, that's literally how it's printed πŸ’…βœ¨

πŸ“¦ where this page comes from