History

genirq/msi: Add abuse prevention comment to msi header

Hope dies last.

Thomas Gleixner committed 4 years ago

Commit ef3350c1 parent cc9a2461 file · +14 −0Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/linux/msi.h+14−0
@@ -2,6 +2,20 @@ · 1 unmodified line
22 #ifndef LINUX_MSI_H
33 #define LINUX_MSI_H
44
5+/*
6+ * This header file contains MSI data structures and functions which are
7+ * only relevant for:
8+ * - Interrupt core code
9+ * - PCI/MSI core code
10+ * - MSI interrupt domain implementations
11+ * - IOMMU, low level VFIO, NTB and other justified exceptions
12+ * dealing with low level MSI details.
13+ *
14+ * Regular device drivers have no business with any of these functions and
15+ * especially storing MSI descriptor pointers in random code is considered
16+ * abuse. The only function which is relevant for drivers is msi_get_virq().
17+ */
18+
519 #include <linux/cpumask.h>
620 #include <linux/mutex.h>
721 #include <linux/list.h>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t