]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/pci.h
PCI/MSI: Add pci_enable_msi_exact() and pci_enable_msix_exact()
authorAlexander Gordeev <agordeev@redhat.com>
Thu, 13 Feb 2014 14:25:02 +0000 (15:25 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Feb 2014 17:45:05 +0000 (10:45 -0700)
commitf7fc32cb2073902b3ee67d036656889ea75ffcb7
tree62966c3e0040e5269bd5a6bb603c7ac247a75e0e
parentfef07277f87735d077c78e12e25639a28d9913ab
PCI/MSI: Add pci_enable_msi_exact() and pci_enable_msix_exact()

The new functions are special cases for pci_enable_msi_range() and
pci_enable_msix_range() when a particular number of MSI or MSI-X
is needed.

By contrast with pci_enable_msi_range() and pci_enable_msix_range()
functions, pci_enable_msi_exact() and pci_enable_msix_exact()
return zero in case of success, which indicates MSI or MSI-X
interrupts have been successfully allocated.

Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Documentation/PCI/MSI-HOWTO.txt
include/linux/pci.h