xe_gt_sriov_...reset_engine(9)
π xe_gt_sriov_pf_policy_set_reset_engine β kernel API manual, but make it make sense
okay so bestie, welcome to the xe_gt_sriov_...reset_engine(9) page π this is a Linux kernel API manual page, specifically the one for xe_gt_sriov_pf_policy_set_reset_engine, and we're gonna get you fluent in it, no cap.
β¨ NAME β¨
xe_gt_sriov_pf_policy_set_reset_engine β the function that gives you control over the 'reset_engine' policy. that's literally the whole job. it sets the vibe of that one policy and dips. π
π¦ SYNOPSIS π¦
here's the signature, copy it exactly bestie, it's giving C, it's giving kernel:
int xe_gt_sriov_pf_policy_set_reset_engine (struct xe_gt *gt , bool enable );
so it hands you back an int, and it wants a struct xe_gt * plus a bool. cute and simple. π«Ά
πΈ ARGUMENTS πΈ
gtβ thexe_gtwhere the policy gets applied. like, which GT are we doing this to. this is the target, the main character of the operation πenableβ the actual value you're assigning to the'reset_engine'policy. flip it on, flip it off, whatever, it's abool.
π DESCRIPTION π
so here's the whole thing: this function sets the 'reset_engine' policy on the xe_gt you pass in.
β οΈ but listen β this function can only be called on PF. that's a hard requirement, not a suggestion, not a vibe. PF only. periodt. don't come at it from anywhere else. π
π₯ RETURN π₯
0β success, you ate, everything is slay β¨- a negative error code β failure, it did not go well, check your life π
π§ SEE ALSO π§
the whole friend group, the full squad, every one of these is linked:
- the 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_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)
go read them all, iykyk π
okay that's the page!! and for the little credits corner: this lives in ./drivers/gpu/drm/xe, dated October 2026, and it's the xe_gt_sriov_...reset_engine(9) page from the Kernel API Manual. mwah, bye bestie ππ¦πΈ
π¦ 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