PCI: Document /sys/bus/pci/devices/.../irq
authorBarry Song <song.bao.hua@hisilicon.com>
Wed, 25 Aug 2021 10:26:34 +0000 (18:26 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 18 Oct 2021 21:16:28 +0000 (16:16 -0500)
commit5e3be666f46b43169e80041657c4b63eaf1ae8de
treef0a4a0b55d5f4db3fcaa113850d776c578afa24f
parente4e737bb5c170df6135a127739a9e6148ee3da82
PCI: Document /sys/bus/pci/devices/.../irq

Document /sys/bus/pci/devices/.../irq.

This file contains the IRQ of the INTx interrupt (or zero if the device
doesn't support INTx interrupts).

If the device has enabled MSI (not MSI-X), it contains the first MSI IRQ
instead.  This is a historical mistake because devices may support several
MSI or MSI-X vectors, and this file can't contain them all.  But we
preserve this behavior to avoid breaking userspace.

[bhelgaas: commit log]
Link: https://lore.kernel.org/r/20210825102636.52757-2-21cnbao@gmail.com
Signed-off-by: Barry Song <song.bao.hua@hisilicon.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-pci