xe_sriov_gt_...d_group_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_sriov_gt_pf_policy_has_sched_group_mode(9) ✨

okay so this is a page from the Kernel API Manual, and honestly it's one of those little helper functions that's small but iconic. it's giving "tiny function, big responsibility" energy, and we're gonna go through it together, bestie 🫢


🌸 NAME 🌸

xe_sriov_gt_pf_policy_has_sched_group_mode β€” literally just checks whether the GT supports a specific scheduler group mode. that's it. that's the whole vibe check πŸ’…


⭐ SYNOPSIS ⭐

bool xe_sriov_gt_pf_policy_has_sched_group_mode (struct xe_gt *gt , enum
xe_sriov_sched_group_modes mode );

so it returns a bool, takes a struct xe_gt * and an enum xe_sriov_sched_group_modes, and yes bestie the spacing before those commas is exactly how it's written in the manual, we don't touch it, we respect it πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gt β€” the xe_gt you wanna check. like, the actual GT in question. main character energy 🌈
  • mode β€” the mode you're checking for. (slay for specificity ✨)

πŸ”₯ DESCRIPTION πŸ”₯

This function can only be called on PF.

okay so real talk: only on PF. no PF, no call. that's the rule and we're not breaking it πŸ’€

πŸ‘‘ RETURN πŸ‘‘

returns true if the GT supports the specified mode, and false otherwise. so clear, so simple, so unbothered ✨


🧚 SEE ALSO 🧚

Kernel file ./drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c β€” like, go read the source if you want the full lore, iykyk πŸ’œ

the whole friend group, in order:


okay that's the whole page, bestie πŸŽ€ this one came out of ./drivers/gpu/drm/xe and it's dated October 2026, so go forth and check those GT scheduler group modes with confidence. periodt πŸ’–πŸŒΈ

πŸ“¦ where this page comes from