1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
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
9 * Copyright (C) 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 #ifndef _LTTNG_WRAPPER_IRQDESC_H
13 #define _LTTNG_WRAPPER_IRQDESC_H
15 #include <linux/interrupt.h>
16 #include <linux/irqnr.h>
18 struct irq_desc
*wrapper_irq_to_desc(unsigned int irq
);
21 * Canary function to check for 'irq_to_desc()' at compile time.
23 * From 'include/linux/irqnr.h':
25 * extern struct irq_desc *irq_to_desc(unsigned int irq);
28 struct irq_desc
*__canary__irq_to_desc(unsigned int irq
)
30 return irq_to_desc(irq
);
33 #endif /* _LTTNG_WRAPPER_IRQDESC_H */
This page took 0.04427 seconds and 4 git commands to generate.