pci_enable_sriov(9)
π pci_enable_sriov (9) β Kernel API Manual π
okay so bestie, welcome to the pci_enable_sriov(9) page, like, the kernel API manual moment where we turn on SR-IOV and let the hardware live its best multi-function life β¨
πΈ NAME πΈ
pci_enable_sriov β enable the SR-IOV capability π
like literally that's it, that's the whole vibe. you're enabling SR-IOV. slay.
π¦ SYNOPSIS π¦
int pci_enable_sriov (struct pci_dev *dev , int nr_virtfn );
look at that signature, so clean, so iconic π
π ARGUMENTS π
devβ the PCI device π» ngl it's just the device, the main character of this whole functionnr_virtfnβ number of virtual functions to enable π§ how many VFs you want, fr fr, you gotta say the number
π DESCRIPTION π
Returns 0 on success, or negative on failure. periodt. that's the whole description, no cap π«Ά
like, that's the entire contract: 0 means you ate, negative means something went sideways π
## π SEE ALSO π
Kernel file ./drivers/pci/iov.c β that's where the magic lives, iykyk π₯
And the whole friend group, going in the order they're listed:
pci_iov_get_pf_drvdata(9)pci_iov_init(9)pci_iov_release(9)pci_iov_remove(9)pci_iov_update_resource(9)pci_sriov_resource_alignment(9)pci_restore_iov_state(9)pci_vf_drivers_autoprobe(9)pci_iov_bus_range(9)pci_disable_sriov(9)pci_num_vf(9)pci_vfs_assigned(9)pci_sriov_set_totalvfs(9)pci_sriov_get_totalvfs(9)pci_sriov_configure_simple(9)pci_iov_vf_bar_set_size(9)pci_iov_vf_bar_get_sizes(9)
go read those too, bestie, they're all part of the same SR-IOV cinematic universe ππ
so yeah, that's the page π it came from ./drivers/pci, dated October 2026, and it's filed under pci_enable_sriov(9) β love that for us, mwah πβ¨πΈ
π¦ 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