xe_ggtt_init(9)
β¨ xe_ggtt_init(9) β¨
okay so bestie, welcome to the xe_ggtt_init page from the Kernel API Manual π
this is the one that does the regular, non-early GGTT setup β yes, there's an early version too (xe_ggtt_init_early(9), we'll get there), but this one is the main-character, non-early glow-up π
πΈ NAME πΈ
xe_ggtt_init β Regular non-early GGTT initialization. that's it, that's the vibe β¨ ("GGTT" = Global Graphics Translation Table, iykyk π¦)
π«Ά SYNOPSIS π«Ά
int xe_ggtt_init (struct xe_ggtt *ggtt );
literally the whole signature, no cap π returns an int, takes one pointer, slays.
π ARGUMENTS π
ggttβ thexe_ggttto be initialized. that's the one. the star of the show. hand it over and let it cook π
β RETURN β
0on success π- a negative error code on failure π (so like, check it, pls, don't just ignore the return value, that's giving chaos energy π)
π SEE ALSO π
so many links, we love a well-connected icon π first up, the kernel file itself:
- 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_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_encode_pte_flags(9)xe_ggtt_read_pte(9)xe_ggtt_node_addr(9)xe_ggtt_node_size(9)
like I said. the whole friend group. read them all, they're iconic π§π
ngl this is the regular init, so if you're looking for the early one you want xe_ggtt_init_early(9) instead β don't mix them up bestie, that's giving undefined-vibe π
and that's the page!! short and sweet, just how we like it π this gem lives under ./drivers/gpu/drm/xe and it's dated October 2026 β mwah, xoxo, go initialize something pretty πβ¨ππ¦
π¦ 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