---
name: "pci_enable_msix_range"
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_range"
---

# pci\_enable\_msix\_range(9)

configure device's MSI-X capability structure

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

*dev*

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

*entries*

pointer to an array of MSI-X entries

*minvec*

minimum number of MSI-X irqs requested

*maxvec*

maximum number of MSI-X irqs requested

## DESCRIPTION

Setup the MSI-X capability structure of device function with a maximum possible number of interrupts in the range between *minvec* and *maxvec* upon its software driver call to request for MSI-X mode enabled on its hardware device function. It returns a negative errno if an error occurs. If it succeeds, it returns the actual number of interrupts allocated and indicates the successful configuration of MSI-X capability structure with new allocated MSI-X interrupts.

## COPYRIGHT
