]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 6 Dec 2011 17:26:00 +0000 (09:26 -0800)
commitefcd515bce578ed94d6084975bb4a4ea0a2ab123
tree13b756f8a02c88167923812944e0859219f0c171
parent8c4519456713628cbb457c77bf06684aace67f69
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