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 #ifdef CONFIG_KALLSYMS
14 #include <linux/kallsyms.h>
15 #include <linux/interrupt.h>
16 #include <linux/irqnr.h>
17 #include <wrapper/kallsyms.h>
18 #include <wrapper/irqdesc.h>
21 struct irq_desc
*(*irq_to_desc_sym
)(unsigned int irq
);
23 struct irq_desc
*wrapper_irq_to_desc(unsigned int irq
)
26 irq_to_desc_sym
= (void *) kallsyms_lookup_funcptr("irq_to_desc");
27 if (irq_to_desc_sym
) {
28 return irq_to_desc_sym(irq
);
30 printk_once(KERN_WARNING
"LTTng: irq_to_desc symbol lookup failed.\n");
37 #include <linux/interrupt.h>
38 #include <linux/irqnr.h>
40 struct irq_desc
*wrapper_irq_to_desc(unsigned int irq
)
42 return irq_to_desc(irq
);
This page took 0.029464 seconds and 4 git commands to generate.