---
name: "pci_enable_msi_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_msi_range"
---

# pci\_enable\_msi\_range(9)

configure device's MSI capability structure

## NAME

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

## SYNOPSIS

**int pci\_enable\_msi\_range(struct pci\_dev \*** *dev***, int** *minvec***, int** *maxvec***);**

## ARGUMENTS

*dev*

device to configure

*minvec*

minimal number of interrupts to configure

*maxvec*

maximum number of interrupts to configure

## DESCRIPTION

This function tries to allocate a maximum possible number of interrupts in a range between *minvec* and *maxvec*. It returns a negative errno if an error occurs. If it succeeds, it returns the actual number of interrupts allocated and updates the *dev*'s irq member to the lowest new interrupt number; the other interrupt numbers allocated to this device are consecutive.

## COPYRIGHT
