---
name: "pci_msi_vec_count"
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_msi_vec_count"
---

# pci\_msi\_vec\_count(9)

Return the number of MSI vectors a device can send

## NAME

pci\_msi\_vec\_count - Return the number of MSI vectors a device can send

## SYNOPSIS

**int pci\_msi\_vec\_count(struct pci\_dev \*** *dev***);**

## ARGUMENTS

*dev*

device to report about

## DESCRIPTION

This function returns the number of MSI vectors a device requested via Multiple Message Capable register. It returns a negative errno if the device is not capable sending MSI interrupts. Otherwise, the call succeeds and returns a power of two, up to a maximum of 2^5 (32), according to the MSI specification.

## COPYRIGHT
