| 1 | /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) |
| 2 | * |
| 3 | * wrapper/irqdesc.h |
| 4 | * |
| 5 | * wrapper around irq_to_desc. Using KALLSYMS to get its address when |
| 6 | * available, else we need to have a kernel that exports this function to GPL |
| 7 | * modules. |
| 8 | * |
| 9 | * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 10 | */ |
| 11 | |
| 12 | #ifndef _LTTNG_WRAPPER_IRQDESC_H |
| 13 | #define _LTTNG_WRAPPER_IRQDESC_H |
| 14 | |
| 15 | #include <linux/interrupt.h> |
| 16 | #include <linux/irqnr.h> |
| 17 | |
| 18 | struct irq_desc *wrapper_irq_to_desc(unsigned int irq); |
| 19 | |
| 20 | #endif /* _LTTNG_WRAPPER_IRQDESC_H */ |