---
name: "pci_num_vf"
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_num_vf"
---

# pci\_num\_vf(9)

return number of VFs associated with a PF device\_release\_driver

## NAME

pci\_num\_vf - return number of VFs associated with a PF device\_release\_driver

## SYNOPSIS

**int pci\_num\_vf(struct pci\_dev \*** *dev***);**

## ARGUMENTS

*dev*

the PCI device

## DESCRIPTION

Returns number of VFs, or 0 if SR-IOV is not enabled.

## COPYRIGHT
