i915_gem_ob..._struct_page(9)
π 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 theconst struct drm_i915_gem_objectyou 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
Trueif the object is page-backed π - Returns
falseotherwise π«Ά
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):
__i915_gem_object_fini(9)i915_gem_object_set_cache_coherency(9)i915_gem_object_set_pat_index(9)__i915_gem_object_pages_fini(9)i915_gem_object_read_from_page(9)i915_gem_object_evictable(9)i915_gem_object_migratable(9)i915_gem_object_has_iomem(9)i915_gem_object_can_migrate(9)i915_gem_object_migrate(9)__i915_gem_object_migrate(9)i915_gem_object_placement_possible(9)i915_gem_object_needs_ccs_pages(9)i915_gem_object_get_moving_fence(9)i915_gem_object_wait_moving_fence(9)
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
- 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