---
name: "pci_enable_msi_block"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/pci_enable_msi_block"
---

# pci\_enable\_msi\_block(9)

configure device's MSI capability structure

## NAME

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

## SYNOPSIS

**int pci\_enable\_msi\_block(struct pci\_dev \*** *dev***, unsigned int** *nvec***);**

## ARGUMENTS

*dev*

device to configure

*nvec*

number of interrupts to configure

## DESCRIPTION

Allocate IRQs for a device with the MSI capability. This function returns a negative errno if an error occurs. If it is unable to allocate the number of interrupts requested, it returns the number of interrupts it might be able to allocate. If it successfully allocates at least the number of interrupts requested, it returns 0 and updates the *dev*'s irq member to the lowest new interrupt number; the other interrupt numbers allocated to this device are consecutive.

## COPYRIGHT
