xe_gt_sriov...ched_if_idle(9)
π xe_gt_sriov...ched_if_idle(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one is a tiny little function with a huge name and honestly? she's giving main character energy. Let's get into it π«Ά
πΈ NAME πΈ
xe_gt_sriov_pf_policy_set_sched_if_idle β the one that controls the 'sched_if_idle' policy. that's it. that's the whole vibe π
β¨ SYNOPSIS β¨
int xe_gt_sriov_pf_policy_set_sched_if_idle (struct xe_gt *gt , bool enable );
like, literally just hand it a gt and a bool and she does her thing π
π¦ ARGUMENTS π¦
gtβ thexe_gtwhere you wanna apply the policy. it's the where, yk? πenableβ the actual value of the'sched_if_idle'policy. so like, on or off, babe.true/false. no in-between π
π DESCRIPTION π
okay so here's the important part, bestie, don't skip it π
This function can only be called on PF.
no cap. PF only. if you're not PF, this is not the function for you, and that's on periodt β
π₯ RETURN π₯
0on success π (slay)- a negative error code on failure π (not slay, but informative)
π SEE ALSO π
the kernel file lives here, iconically:
Kernel file ./drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c
and here's the whole friend group π«Ά β the xe_gt_sriov_pf_policy squad, all in one place:
xe_gt_sriov_pf_policy_set_sched_if_idle_locked(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_sriov_gt_pf_policy_has_sched_group_mode(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)
ngl that's a lot of siblings but they're all iconic in their own way ππ
π sign-off π
this absolute gem of a page comes to you from ./drivers/gpu/drm/xe, dated October 2026 β go off, kernel docs, we love to see it π
β¨π
π¦ 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