1PCI_SRIOV_SET_TOTALV(9) Hardware Interfaces PCI_SRIOV_SET_TOTALV(9)
2
3
4
6 pci_sriov_set_totalvfs - - reduce the TotalVFs available
7
9 int pci_sriov_set_totalvfs(struct pci_dev * dev, u16 numvfs);
10
12 dev
13 the PCI PF device
14
15 numvfs
16 -- undescribed --
17
19 number that should be used for TotalVFs supported
20
21 Should be called from PF driverĀ“s probe routine with deviceĀ“s mutex
22 held.
23
24 Returns 0 if PF is an SRIOV-capable device and value of numvfs valid.
25 If not a PF with VFS, return -EINVAL; if VFs already enabled, return
26 -EBUSY.
27
29Kernel Hackers Manual 2.6. June 2019 PCI_SRIOV_SET_TOTALV(9)