]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/MSI: Add pci_enable_msi_exact() and pci_enable_msix_exact()
authorAlexander Gordeev <agordeev@redhat.com>
Thu, 13 Feb 2014 17:48:02 +0000 (10:48 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Feb 2014 17:48:02 +0000 (10:48 -0700)
commitac1877af1f677abb35378b95713cbe45c650c1f3
tree5ab6d5d5db55c65646e4cce6ce0c17e1d87fc203
parentfe3726a8d5dbc5950db498b43a2bd150558a2b85
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