xe_ggtt_insert_bo(9)
β¨ xe_ggtt_insert_bo(9) β¨
okay so bestie, welcome to the xe_ggtt_insert_bo(9) page from the Kernel API Manual β this is the little kernel function that yeets a buffer object into the GGTT, and we're gonna go through it together, no cap π
πΈ NAME πΈ
xe_ggtt_insert_bo β Insert BO into GGTT π«Ά
like, that's literally the whole vibe: BO goes in, GGTT holds it.
π SYNOPSIS π
int xe_ggtt_insert_bo (struct xe_ggtt *ggtt , struct xe_bo *bo , struct
drm_exec *exec );
bestie it returns an int, takes three args, and it's giving "small function, big responsibilities" energy fr fr π
πΌ ARGUMENTS πΌ
ggttβ thexe_ggttwherebowill be inserted π this is the destination, the main character of the whole operationboβ thexe_boto be inserted π that's your buffer object, the thing that's getting placed in thereexecβ Thedrm_exectransaction to use for exhaustive eviction. π yes, "exhaustive eviction" β it's serious business, the transaction handle is doing heavy lifting here
π RETURN π
0 on success or a negative error code on failure. periodt. β¨
lowkey important: negative error code means something went wrong β don't just check for nonzero and vibe out, check the sign π€
π¦ SEE ALSO π¦
the whole friend group showed up, ngl, so here's the full squad list π
- Kernel file
./drivers/gpu/drm/xe/xe_ggtt.cGlobal 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_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)
and that's the page!! go insert some BOs, bestie π β¨
this little masterpiece lives in ./drivers/gpu/drm/xe, it's dated October 2026, and it's still signed xe_ggtt_insert_bo(9) at the bottom β iconic, honestly ππ«Ά
π¦ 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