xe_ggtt_encode_pte_flags(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xe_ggtt_encode_pte_flags(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's a lil function called xe_ggtt_encode_pte_flags, and it's lowkey iconic in a very specific way. let's get into it 🫢


🌸 NAME 🌸

xe_ggtt_encode_pte_flags β€” get those PTE encoding flags for a BO, fr fr πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

u64 xe_ggtt_encode_pte_flags (struct xe_ggtt *ggtt , struct xe_bo *bo ,
u16 pat_index );

like, it returns a u64, takes a struct xe_ggtt *, a struct xe_bo *, and a u16. cute, clean, to the point ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • ggtt β€” a xe_ggtt. that's the one. the whole GGTT vibe πŸ’«
  • bo β€” a xe_bo, obvi. the buffer object in question 🧚
  • pat_index β€” the pat_index for the PTE. yes, exactly that one, no cap πŸ‘‘

🌈 DESCRIPTION 🌈

so what does it actually do? it returns the pte_flags for a given BO β€” without the address. not me emphasizing that but it matters, okay 😭

it's used for DPT, to fill a GGTT mapped BO with a linear lookup table. that's the whole thing, and it ate πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

okay this list is long and we're gonna get through it together, bestie. no skipping, every single one gets its moment 🫢

like, the whole GGTT friend group showed up πŸ’€πŸ’–


ngl reading the whole crew at once is a lot, but you got this. one function at a time, bestie πŸ’ͺ

and that's the page!! brought to you by ./drivers/gpu/drm/xe 🌸, dated October 2026 πŸŽ€ β€” mwah, go read some more kernel docs, ily, bye πŸ‘‹πŸ’œ

πŸ“¦ where this page comes from