xe_gt_sriov...ample_period(9)
π 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β thestruct xe_gtwhere 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 π₯
0on 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:
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_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)
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
- 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