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

Re: [Xen-devel] error binding to event channel

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] error binding to event channel
From: Jacob Gorm Hansen <jacobg@xxxxxxx>
Date: Tue, 22 Feb 2005 12:55:10 -0800
Delivery-date: Tue, 22 Feb 2005 20:57:53 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <42199B38.3050806@xxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <42199B38.3050806@xxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (X11/20050116)
Jacob Gorm Hansen wrote:
hi,
I am trying to bind an event channel to my domain using the following code:

OK I have it sorted now, using a constant port number at the domU end, the code looks like this:

        int p1=0;
        int p2=0;
        int r;

        p2=14;
        r = xc_evtchn_bind_interdomain(xc_handle,
                DOMID_SELF,domu_dom_id,
                &p1,&p2);

        r = xc_evtchn_send(xc_handle, p1);


and on the receiving end:

        int my_irq = bind_evtchn_to_irq(14);
        printk("bound irq %d\n", my_irq);

int r = request_irq(my_irq, my_interrupt_handler, SA_SAMPLE_RANDOM, , "myirq", 0);

Jacob


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>