Deepak Joshi wrote: > Hi all, > > I am using irq_desc array in my program to list out > the names of all devices those who registered their > interrupt handler. while loading the module i am > getting "unresolved symbol irq_desc" as an error. i am > using 2.4.24 kernel and this is my code. Can anybody > plz explain me whats the problem. > > Thanks and Regards, > Deepak Joshi. > > > > int init_module(void) > { > int i; > struct irqaction *action; > printk("\n\t The no of IRQ lines are > %d",NR_IRQS); > for(i=0;i<NR_IRQS;i++) > { > desc++; > action = desc->action; > if(!action) > continue; > printk("\n\t The irq handler for irq > %d is %s",i,action->name); > while(action!=NULL){ > printk("\n\t The irq handler > for irq %d is %s",i,action->name); > action=action->next; > } > > > > } > return 0; > } > "show.c" 53L, 1260C written > That symbol is not EXPORTED. If you want your module to know where it is you will can grep the System.map file for its address and then pass that address into your module as an option. Mark -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/