genirq/msi: Provide a set of advanced MSI accessors and iterators
authorThomas Gleixner <tglx@linutronix.de>
Mon, 6 Dec 2021 22:51:08 +0000 (23:51 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:22:17 +0000 (22:22 +0100)
commit1046f71d7268b1680d7b044dea83c664403f6302
tree62eda7a479602d007d6e3d12d4d9ba39e3e07b72
parent0f62d941acf9ac3b6025692ce649b1f282b89e7f
genirq/msi: Provide a set of advanced MSI accessors and iterators

In preparation for dynamic handling of MSI-X interrupts provide a new set
of MSI descriptor accessor functions and iterators. They are benefitial per
se as they allow to cleanup quite some code in various MSI domain
implementations.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211206210747.818635078@linutronix.de
include/linux/msi.h
kernel/irq/msi.c