i915_gem_ob...et_pat_index(9)
πΈ i915_gem_ob...et_pat_index(9) πΈ
okay bestie, welcome to the Kernel API Manual β¨ this one's a short lil page but it's lowkey important, so let's get into it π
π NAME π
i915_gem_object_set_pat_index β set PAT index to be used in PTE encode
like, it literally just sets the PAT index that gets used when you encode a PTE. that's the whole vibe check π«Ά
β¨ SYNOPSIS β¨
void i915_gem_object_set_pat_index (struct drm_i915_gem_object *obj ,
unsigned int pat_index );
no cap, that's the whole signature. two args, returns nothing (void), main character energy only π
π ARGUMENTS π
objβ a#drm_i915_gem_object(yes, the struct reference is literally written like that, iykyk) πpat_indexβ the PAT index. that's it. that's the argument π¦
π DESCRIPTION π
so here's the tea β this function is a clone of i915_gem_object_set_cache_coherency, except instead of taking cache_level as its second argument, it takes pat index instead. same energy, different second slot β¨
fr fr, that's the entire description. short and iconic, not me being obsessed with how concise this is π
π¦ SEE ALSO π¦
the kernel file lives right here, bestie:
Kernel file ./drivers/gpu/drm/i915/gem/i915_gem_object.c
and here's the whole friend group, all of them, no one left out π«Ά:
__i915_gem_object_fini(9)i915_gem_object_set_cache_coherency(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_struct_page(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)
π reminder bestie: the name in full is i915_gem_object_set_pat_index, so if you're grepping for it, don't copy the truncated dots from the header, mwah π
and that's the page!! sign-off time π this lil beauty ships out of ./drivers/gpu/drm/i915/gem and it's dated October 2026 β slay, go set some PAT indices, ily, bye πβ¨π¦
π¦ 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