xe_sriov_gt_...d_group_mode(9)
π 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β thexe_gtyou 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:
xe_gt_sriov_pf_policy_set_sched_if_idle_locked(9)xe_gt_sriov_pf_policy_set_sched_if_idle(9)xe_gt_sriov_pf_policy_get_sched_if_idle_locked(9)xe_gt_sriov_pf_policy_get_sched_if_idle(9)xe_gt_sriov_pf_policy_set_reset_engine(9)xe_gt_sriov_pf_policy_get_reset_engine(9)xe_gt_sriov_pf_policy_set_sample_period(9)xe_gt_sriov_pf_policy_get_sample_period(9)xe_sriov_gt_pf_policy_has_sched_groups_support(9)xe_sriov_gt_pf_policy_has_multi_group_modes(9)xe_gt_sriov_pf_policy_set_sched_groups_mode(9)xe_gt_sriov_pf_policy_sched_groups_enabled(9)xe_gt_sriov_pf_policy_sanitize(9)xe_gt_sriov_pf_policy_restart(9)xe_gt_sriov_pf_policy_init(9)xe_gt_sriov_pf_policy_print(9)
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
- 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