xe_gt_sriov...et_fair_ggtt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_gt_sriov...et_fair_ggtt(9) β€” like, the whole Kernel API Manual situation ✨

okay so bestie, buckle up πŸŽ€ this one lives in the Kernel API Manual and it's genuinely so useful once it clicks, i promise. it's giving "divide the GGTT up fairly across a whole bunch of VFs at once" and honestly? iconic. no cap.


✨ NAME ✨

xe_gt_sriov_pf_config_set_fair_ggtt β€” provision many VFs with fair GGTT. that's it, that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

int xe_gt_sriov_pf_config_set_fair_ggtt (struct xe_gt *gt , unsigned int
vfid , unsigned int num_vfs );

like, keep it exactly like that, don't retype it from memory bestie 😭


🫢 ARGUMENTS 🫢

  • gt β€” the xe_gt you're working with. important: it can't be media. nope. not allowed. πŸ™ˆ
  • vfid β€” the starting VF identifier. also important: it can't be 0. periodt. πŸ’…
  • num_vfs β€” how many VFs you want to provision. that's the count, that's it, that's the assignment. 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

This function can only be called on PF. that's the whole rule, no exceptions, don't try it on anything else or it's gonna be a bad time πŸ’€


⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • a negative error code on failure 😭

like… that's the whole contract. slay.


🧚 SEE ALSO 🧚

Kernel file ./drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c β€” that's where the actual lore lives, go read it πŸ“

and the whole friend group of sibling functions, all of them, no skipping:

like, that's the entire group chat, all 55 of them, go say hi πŸ‘‹πŸ’–


and that's the page bestie!! 🫢 cute little sign-off: this one ships from ./drivers/gpu/drm/xe and it's dated October 2026 β€” so yeah, future vibes only β­πŸ’œ

πŸ“¦ where this page comes from