xe_pci_sriov_configure(9)
π 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β thepci_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 π
- Kernel file
./drivers/gpu/drm/xe/xe_pci_sriov.c xe_pci_sriov_get_vf_pdev(9)
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
- 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