xe_ggtt_print_holes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xe_ggtt_print_holes ✨

okay so this one's from the Kernel API Manual, and it's genuinely the most chill little function β€” it's literally just "hey bestie, show me the holes" πŸ’… no cap.

πŸŽ€ NAME πŸŽ€

xe_ggtt_print_holes β€” print holes. that's it. that's the whole name. iconic, honestly.

🌸 SYNOPSIS 🌸

u64 xe_ggtt_print_holes (struct xe_ggtt *ggtt , u64 alignment , struct
drm_printer *p );

like, three args, returns a u64, she's compact and she knows it 🫢

πŸ’– ARGUMENTS πŸ’–

  • ggtt β€” the xe_ggtt to be inspected πŸ‘€ this is the thing you're snooping on
  • alignment β€” min alignment, i.e. the smallest alignment you'll accept, bestie
  • p β€” the drm_printer, aka where the output actually goes πŸ–¨οΈ

πŸ¦‹ DESCRIPTION πŸ¦‹

So what she does is: print GGTT ranges that are available πŸ“‹ and then return the total size available. That's literally the vibe β€” dump the free ranges, hand you back the number. lowkey obsessed with how straightforward that is.

⭐ RETURN ⭐

Total available size. that's the u64. slay. πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr β€” go say hi:

  • 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_encode_pte_flags(9)
  • xe_ggtt_read_pte(9)
  • xe_ggtt_node_addr(9)
  • xe_ggtt_node_size(9)

bestie reminder: this page lives in ./drivers/gpu/drm/xe 🐧

k thx bye, this was xe_ggtt_print_holes(9) from October 2026, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from