---
name: "pci_sriov_get_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_get_totalvfs"
---

# pci\_sriov\_get\_totalvfs(9)

\- get total VFs supported on this device

## NAME

pci\_sriov\_get\_totalvfs - - get total VFs supported on this device

## SYNOPSIS

**int pci\_sriov\_get\_totalvfs(struct pci\_dev \*** *dev***);**

## ARGUMENTS

*dev*

the PCI PF device

## DESCRIPTION

For a PCIe device with SRIOV support, return the PCIe SRIOV capability value of TotalVFs or the value of driver\_max\_VFs if the driver reduced it. Otherwise 0.

## COPYRIGHT
