]> git.karo-electronics.de Git - linux-beck.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>
Fri, 6 Jan 2012 20:10:25 +0000 (12:10 -0800)
commitda8d1c8ba4dcb16d60be54b233deca9a7cac98dc
treeac4713f9dd29aab4d4d5b167cf61081aeb2ccdb4
parent8b6a5af92c03b363df050da906480085b6cd6e00
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