|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
[Xen-devel] Error while binding VIRQ to IRQ_HANDLER
 
| 
Hi, 
 
 I wrote a kernel module for handling a custom VIRQ. It is compiling fine, but when I try to do modprobe  it's giving me the following error: 
 
 
FATAL: Error inserting vbase (/lib/modules/2.6.18.8/kernel/drivers/xen/vbase/vbase.ko): Unknown symbol in module, or unknown parameter (see dmesg) 
 
 The output of dmesg is as follows: 
 
 
vbase: Unknown symbol bind_virq_to_irqhandler 
 
 The module code is as follows: 
 
 
 
 
  
static irqreturn_t vbase_handler (int irq, void *dummy, struct pt_regs *regs) 
{ 
        printk("\nVBASE: XEN Notification Received"); 
        return IRQ_HANDLED; 
} 
  
int init_module(void) 
{ 
        int err; 
  
        printk("\nVBASE: vbase_test module called"); 
  
        /* * 
	 * Bind the VIRQ_VBASE to an IRQ handler 
         * parameters for the following function are: 
         * VIRQ, CPU#, IRQ_HANDLER, IRQ_FLAGS, DEV_NAME, DEV_ID 
         **/ 
        err = bind_virq_to_irqhandler(11, 0, vbase_handler, 0, "VBASE", NULL); 
  
        if (err < 0){ 
                printk("\nVBASE: Could not bind VIRQ<->IRQ_HANDLER"); 
        } 
  
        return 0; 
} 
  
void cleanup_module(void) 
{ 
        printk("\nVBASE: vbase_test module cleaned up"); 
  
        return; 
} 
 
 
 
 
 
 -- Srujan D. Kotikela
  
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- [Xen-devel] Error while binding VIRQ to IRQ_HANDLER,
Srujan D. Kotikela <=
 
 
 |  
  
 | 
    | 
  
  
    |   | 
    |