i915_gem_ob...et_pat_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 🫢:


πŸ’€ 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