WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Error while binding VIRQ to IRQ_HANDLER

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Error while binding VIRQ to IRQ_HANDLER
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=uLEGY/Fblq+RQuctqq4tbc/GcxXawoYxk8rLi4dzkQs=; b=RqriHtQksmAFfrNmbT+5cOnGAmGJqa9tQZHkgijKgJXmUqvYO5/kn4L5E5W6IskrTw 3oKDQy+brEem+qTOIAhd6Wqmm5/dACxDt8ldDUoRshPTfxvAjgTtUMBNZ/VLckelywbG VtmxylvvXbMPQKMfoYFeAC/x/tQoKVnh6TrD8=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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>