xe_gt_sriov...ched_if_idle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 β€” the xe_gt where 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 πŸ”₯

  • 0 on 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:

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