xe_sriov_pf_...ion_set_mode(9)
π xe_sriov_pf_provision_set_mode β from the Kernel API Manual π
okay bestie, buckle up, we're diving into xe_sriov_pf_provision_set_mode and honestly? she's giving "small function, big consequences" energy. This is the kernel API manual page, and yes we are reading it for fun. π¦
β¨ NAME β¨
xe_sriov_pf_provision_set_mode β literally just "change the VFs provision mode." That's the whole gig. Changing. Modes. Slay. π
πΈ SYNOPSIS πΈ
int xe_sriov_pf_provision_set_mode (struct xe_device *xe , enum
xe_sriov_provisioning_mode mode );
look at her. two arguments, one int return. main character signature honestly. π
π ARGUMENTS π
xeβ the PFxe_device. like, THE device. the parent of the whole virtual-function situation. no cap. π«Άmodeβ the new VFs provisioning mode. this is the vibe you're switching her into. choose wisely bestie. β¨
π DESCRIPTION π
okay so here's the tea, and there is a LOT of tea. β
Switching from AUTO to CUSTOM mode: any VFs resources that are already allocated? they stay allocated. they do not get released when VFs get disabled. she's keeping them. that's the whole point. lowkey iconic. π₯
Switching back to AUTO mode: two scenarios, pay attention bestie, there will be a quiz:
- if VFs are not enabled β the already-allocated VFs resources get released immediately. poof. gone. instantly. π
- if VFs are still enabled β the mode change gets rejected. straight up no. not happening. π
β οΈ and this is the big one: this function can only be called on PF. periodt. do not try this anywhere else, it's not gonna end well for you. π
β RETURN β
0on success π (we love a zero)- a negative error code on failure π (we do not love that, but it's real)
π SEE ALSO π
the friend group π β first, the source file itself:
- Kernel file
./drivers/gpu/drm/xe/xe_sriov_pf_provision.cπ
and then her entire entourage, alphabetically-ish, all present and accounted for, no one left behind:
xe_sriov_pf_provision_vfs(9)xe_sriov_pf_unprovision_vfs(9)xe_sriov_pf_reprovision_default(9)xe_sriov_pf_provision_bulk_apply_eq(9)xe_sriov_pf_provision_apply_vf_eq(9)xe_sriov_pf_provision_query_vf_eq(9)xe_sriov_pf_provision_bulk_apply_pt(9)xe_sriov_pf_provision_apply_vf_pt(9)xe_sriov_pf_provision_query_vf_pt(9)xe_sriov_pf_provision_bulk_apply_priority(9)xe_sriov_pf_provision_apply_vf_priority(9)xe_sriov_pf_provision_query_vf_priority(9)xe_sriov_pf_provision_bulk_apply_vram(9)xe_sriov_pf_provision_apply_vf_vram(9)xe_sriov_pf_provision_query_vf_vram(9)
like, the whole bulk-apply / apply-vf / query-vf trio for eq, pt, priority and vram?? she's got range. she's got a squad. π§β¨
aaaaand that's the page! π this lil beauty lives in ./drivers/gpu/drm/xe, dropped October 2026, filed under xe_sriov_pf_...ion_set_mode(9) β mwah, go read it again, iykyk ππ¦πΈ
π¦ 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