[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Error while binding VIRQ to IRQ_HANDLER


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: "Srujan D. Kotikela" <ksrujandas@xxxxxxxxx>
  • Date: Tue, 9 Nov 2010 10:43:46 -0600
  • Delivery-date: Tue, 09 Nov 2010 08:44:41 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=EY77T17qyEgoDJS/B/i9yCRwcdd78obsbldMuZz8OVg2svCLU+njZ32v9bhl/NKuDh e18bDp2ksSTBJJ8xk+kwsBdECKxtAXIdNHe5dlf4a/EDeS2MLmtSw7E9ITA5lmO9Dlld oLXnLWRX6TiOplLIJMnfxZE0jljpucc73+KUQ=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.