xe_gt_sriov...ample_period(9)
πΈ xe_gt_sriov_pf_policy_get_sample_period(9) β the vibe check on your sample_period policy πΈ
okay so bestie, we're in the Kernel API Manual, section 9, and the page is literally called xe_gt_sriov...ample_period(9) β yes, that's its actual government name, the kernel truncated it like it ran out of characters π don't worry, we know what it means.
we're looking at xe_gt_sriov_pf_policy_get_sample_period β a getter. a little getter. it just reads a policy value and hands it to you, no drama, no side quests π
β¨ NAME β¨
xe_gt_sriov_pf_policy_get_sample_period β retrieves the value of the 'sample_period' policy. that's it. that's the whole job. she reads, she returns, she leaves π
β¨ SYNOPSIS β¨
u32 xe_gt_sriov_pf_policy_get_sample_period (struct xe_gt *gt );
one function, one argument, one u32 coming back at you π¦
β¨ ARGUMENTS β¨
gtβ thexe_gtwhere to read the policy from. that's your little handle to the GT you're curious about, and it's the only thing you gotta pass in π
β¨ DESCRIPTION β¨
so here's the important part, and I need you to actually read this one bestie: this function can only be called on PF. like, that's a hard requirement, not a suggestion, no cap π¨
(it's a PF-only function, meaning it's living its best life in the Physical Function context β don't come at it from anywhere else, it's not that kind of function π)
β¨ RETURN β¨
it returns the value of the 'sample_period' policy. that's the u32. that's your answer. collect it and go π
β¨ SEE ALSO β¨
the whole friend group, gathered for u π«Ά β go say hi to:
- Kernel file
./drivers/gpu/drm/xe/xe_gt_sriov_pf_policy.c 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_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)
ok and one last lil housekeeping note for the girlies who track provenance: this page comes from ./drivers/gpu/drm/xe and it's dated October 2026. screenshot it, cite it, live by it πΈβ¨
that's the whole page, bestie β you ate that read π πΈ literally nothing left to be confused about. bye!! ππ¦
π¦ 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