xe_sriov_pf_...ion_set_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 PF xe_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 ⭐

  • 0 on 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:

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