2 * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
4 * wrapper around irq_to_desc. Using KALLSYMS to get its address when
5 * available, else we need to have a kernel that exports this function to GPL
8 * Dual LGPL v2.1/GPL v2 license.
11 #ifdef CONFIG_KALLSYMS
13 #include <linux/kallsyms.h>
14 #include <linux/interrupt.h>
15 #include <linux/irqnr.h>
20 struct irq_desc
*(*irq_to_desc_sym
)(unsigned int irq
);
22 struct irq_desc
*wrapper_irq_to_desc(unsigned int irq
)
25 irq_to_desc_sym
= (void *) kallsyms_lookup_funcptr("irq_to_desc");
26 if (irq_to_desc_sym
) {
27 return irq_to_desc_sym(irq
);
29 printk(KERN_WARNING
"LTTng: irq_to_desc symbol lookup failed.\n");
36 #include <linux/interrupt.h>
37 #include <linux/irqnr.h>
39 struct irq_desc
*wrapper_irq_to_desc(unsigned int irq
)
41 return irq_to_desc(irq
);
This page took 0.044527 seconds and 4 git commands to generate.