xe_ggtt_encode_pte_flags(9)
β¨ 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β axe_ggtt. that's the one. the whole GGTT vibe π«boβ axe_bo, obvi. the buffer object in question π§pat_indexβ thepat_indexfor 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 π«Ά
- Kernel file
./drivers/gpu/drm/xe/xe_ggtt.c - Global Graphics Translation Table (GGTT)(9)
struct xe_ggtt_node(9)struct xe_ggtt_pt_ops(9)struct xe_ggtt(9)xe_ggtt_start(9)xe_ggtt_size(9)xe_ggtt_alloc(9)xe_ggtt_init_early(9)xe_ggtt_node_remove(9)xe_ggtt_init(9)xe_ggtt_shift_nodes(9)xe_ggtt_insert_node(9)xe_ggtt_node_pt_size(9)xe_ggtt_map_bo(9)xe_ggtt_map_bo_unlocked(9)xe_ggtt_insert_node_transform(9)xe_ggtt_insert_bo_at(9)xe_ggtt_insert_bo(9)xe_ggtt_remove_bo(9)xe_ggtt_largest_hole(9)xe_ggtt_assign(9)xe_ggtt_node_save(9)xe_ggtt_node_load(9)xe_ggtt_dump(9)xe_ggtt_print_holes(9)xe_ggtt_read_pte(9)xe_ggtt_node_addr(9)xe_ggtt_node_size(9)
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
- 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