Skip to content

Commit

Permalink
genirq/msi: Add abuse prevention comment to msi header
Browse files Browse the repository at this point in the history
Hope dies last.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211206210749.170847844@linutronix.de
  • Loading branch information
Thomas Gleixner committed Dec 16, 2021
1 parent cc9a246 commit ef3350c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/linux/msi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
#ifndef LINUX_MSI_H
#define LINUX_MSI_H

/*
* This header file contains MSI data structures and functions which are
* only relevant for:
* - Interrupt core code
* - PCI/MSI core code
* - MSI interrupt domain implementations
* - IOMMU, low level VFIO, NTB and other justified exceptions
* dealing with low level MSI details.
*
* Regular device drivers have no business with any of these functions and
* especially storing MSI descriptor pointers in random code is considered
* abuse. The only function which is relevant for drivers is msi_get_virq().
*/

#include <linux/cpumask.h>
#include <linux/mutex.h>
#include <linux/list.h>
Expand Down

0 comments on commit ef3350c

Please sign in to comment.