pci_sriov_set_totalvfs(9)

pci_sriov_set_totalvfs9

- reduce the totalvfs available

Usage

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

Overview

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.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.