pci_vfs_assigned(9) returns number of VFs are assigned to a guest

SYNOPSIS

int pci_vfs_assigned(struct pci_dev * dev);

ARGUMENTS

dev

the PCI device

DESCRIPTION

Returns number of VFs belonging to this device that are assigned to a guest. If device is not a physical function returns 0.

COPYRIGHT