xe_gt_sriov...ample_period(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xe_gt_sriov_pf_policy_set_sample_period β€” NAME ✨

okay so bestie, this is a page from the Kernel API Manual (yes, that's the manual name, we're fancy now πŸŽ€) and it's all about xe_gt_sriov_pf_policy_set_sample_period β€” the function that lets you control the 'sample_period' policy. that's the whole vibe. it sets it. that's it. iconic behavior honestly πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int xe_gt_sriov_pf_policy_set_sample_period (struct xe_gt *gt , u32 value );

like, look at her. takes two things, gives you back an int. no notes πŸ’…


🌸 ARGUMENTS 🌸

  • gt β€” the struct xe_gt where you wanna apply the policy. that's the target, the main character, the place this whole thing happens πŸ’–
  • value β€” the actual value of the 'sample_period' policy. this is the number you're setting, so pick it wisely bestie 🫢

⭐ DESCRIPTION ⭐

here's the important part, no cap: this function can only be called on PF.

lowkey crucial detail β€” PF only. don't come at it any other way, it's not gonna work out for you 😭

πŸ”₯ RETURN πŸ”₯

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

that's the whole deal. zero means slay, negative means nope.


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives right here, go read it if you're feeling nerdy:

  • ./drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c

and the whole friend group, in order, exactly like this:


and that's the page bestie πŸ’œ it ships from ./drivers/gpu/drm/xe, dated October 2026, and yeah β€” the footer still calls her xe_gt_sriov...ample_period(9) (the terminal truncates it, not me, i would never πŸ™ˆ). go set that sample period, you got this 🧚✨

πŸ“¦ where this page comes from