]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/sysfs: add per pci device msi[x] irq listing (v5)
authorNeil Horman <nhorman@tuxdriver.com>
Thu, 6 Oct 2011 18:08:18 +0000 (14:08 -0400)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 5 Dec 2011 18:21:44 +0000 (10:21 -0800)
commit0832b90ea3c86cf81a09f3a645eecb2a7245cb20
treebd0f0c9342f173754db228834ccb0f35fd3dff20
parent2b6bc18df693bf3bf4d457e5cd3a64ea82a264e7
PCI/sysfs: add per pci device msi[x] irq listing (v5)

This patch adds a per-pci-device subdirectory in sysfs called:
/sys/bus/pci/devices/<device>/msi_irqs

This sub-directory exports the set of msi vectors allocated by a given
pci device, by creating a numbered sub-directory for each vector beneath
msi_irqs.  For each vector various attributes can be exported.
Currently the only attribute is called mode, which tracks the
operational mode of that vector (msi vs. msix)

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Documentation/ABI/testing/sysfs-bus-pci
drivers/pci/msi.c
include/linux/msi.h
include/linux/pci.h