#include #include #include static int irq; void intr_handler(int irq,void *junk,struct pt_regs *regs){ rtl_printf("IRQ : %d\n",irq); } int init_module(void) { irq = rtl_get_soft_irq(intr_handler,"rtirqsoft"); return 0; } void cleanup_module(void) { rtl_free_soft_irq(irq); }