---
name: "pci_enable_msix"
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_enable_msix"
---

# pci\_enable\_msix(9)

configure device's MSI-X capability structure

## NAME

pci\_enable\_msix - configure device's MSI-X capability structure

## SYNOPSIS

**int pci\_enable\_msix(struct pci\_dev \*** *dev***, struct msix\_entry \*** *entries***, int** *nvec***);**

## ARGUMENTS

*dev*

pointer to the pci\_dev data structure of MSI-X device function

*entries*

pointer to an array of MSI-X entries (optional)

*nvec*

number of MSI-X irqs requested for allocation by device driver

## DESCRIPTION

Setup the MSI-X capability structure of device function with the number of requested irqs upon its software driver call to request for MSI-X mode enabled on its hardware device function. A return of zero indicates the successful configuration of MSI-X capability structure with new allocated MSI-X irqs. A return of \< 0 indicates a failure. Or a return of \> 0 indicates that driver request is exceeding the number of irqs or MSI-X vectors available. Driver should use the returned value to re-send its request.

## COPYRIGHT
