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

Unified · Split

include/linux/msi.h+14−0
@@ -2,6 +2,20 @@ · 1 unmodified line
2#ifndef LINUX_MSI_H2#ifndef LINUX_MSI_H
3#define LINUX_MSI_H3#define LINUX_MSI_H
4 4
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
5#include <linux/cpumask.h>19#include <linux/cpumask.h>
6#include <linux/mutex.h>20#include <linux/mutex.h>
7#include <linux/list.h>21#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