xe_pci_sriov_configure(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– xe_pci_sriov_configure(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ this one's a little function with main character energy β€” it's the Xe driver's hook for turning SR-IOV virtual functions on and off. let's get into it 🫢


✨ SYNOPSIS ✨

int xe_pci_sriov_configure (struct pci_dev *pdev , int num_vfs );

like, that's the whole signature. cute, right? πŸŽ€


🌸 ARGUMENTS 🌸

  • pdev β€” the pci_dev. literally the PCI device we're doing all this for πŸ’…
  • num_vfs β€” the number of VFs to enable, or zero to disable all VFs. zero = bye bye, all of them πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

so this is the Xe implementation of the struct pci_driver.sriov_configure callback. no cap, that's exactly what it is πŸ”₯

and here's the vibe: this callback gets called by the PCI subsystem to enable or disable SR-IOV Virtual Functions (VFs) β€” as requested by the user via the PCI sysfs interface. so like, the user pokes sysfs, the PCI subsystem goes "say less", and it rings this function up πŸ“žβœ¨

ngl, this is the plug-in point β€” the whole VF enable/disable pipeline runs through here, so it's kind of a big deal πŸ‘‘

⭐ RETURN ⭐

returns the number of configured VFs πŸŽ‰ …or a negative error code on failure 😭 (iykyk, always check your error codes, bestie)


🌈 SEE ALSO 🌈


that's the whole page, bestie, you ate that πŸ’…

okay and for the cute little sign-off: this icon lives over in ./drivers/gpu/drm/xe 🧚 and the version/date stamp on it is October 2026 ⭐ so yeah, future-coded fr fr. mwah, go configure some VFs responsibly πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from