---
name: "pci_sriov_set_totalvfs"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_sriov_set_totalvfs"
---

# pci\_sriov\_set\_totalvfs(9)

\- reduce the TotalVFs available

## NAME

pci\_sriov\_set\_totalvfs - - reduce the TotalVFs available

## SYNOPSIS

**int pci\_sriov\_set\_totalvfs(struct pci\_dev \*** *dev***, u16** *numvfs***);**

## ARGUMENTS

*dev*

the PCI PF device

*numvfs*

number that should be used for TotalVFs supported

## DESCRIPTION

Should be called from PF driver's probe routine with device's mutex held.

Returns 0 if PF is an SRIOV-capable device and value of numvfs valid. If not a PF return -ENOSYS; if numvfs is invalid return -EINVAL; if VFs already enabled, return -EBUSY.

## COPYRIGHT
