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 number that should be used for TotalVFs supported
17
19 Should be called from PF driver's probe routine with device's mutex
20 held.
21
22 Returns 0 if PF is an SRIOV-capable device and value of numvfs valid.
23 If not a PF return -ENOSYS; if numvfs is invalid return -EINVAL; if VFs
24 already enabled, return -EBUSY.
25
27Kernel Hackers Manual 3.10 June 2019 PCI_SRIOV_SET_TOTALV(9)