pci_num_vf(9)
π¦ NAME π¦
pci_num_vf β bestie, this one just tells you how many VFs are chilling with a PF π
also lowkey tagged along: device_release_driver
β¨ SYNOPSIS β¨
int pci_num_vf (struct pci_dev *dev );
π ARGUMENTS π
devβ the PCI device, aka the star of the show π
π DESCRIPTION π
Returns the number of VFs, or 0 if SR-IOV is not enabled. That's it, that's the whole vibe. No cap π«Ά
okay but fr fr, if SR-IOV isn't turned on you're getting a 0 back, not an error β know the difference bestie π
π SEE ALSO π
Kernel file ./drivers/pci/iov.c β and the whole friend group π―ββοΈ
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_enable_sriov(9)pci_disable_sriov(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)
okay that's the whole page, mwah π this one lives under ./drivers/pci and it's dated October 2026 β yes, the future, she's iconic like that π§ββοΈβ
π¦ 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