From: Jacob Gorm Hansen <jacobg@diku.dk>
To: xen-devel <xen-devel@lists.sourceforge.net>
Subject: Re: error binding to event channel
Date: Tue, 22 Feb 2005 12:55:10 -0800 [thread overview]
Message-ID: <421B9C2E.8050300@diku.dk> (raw)
In-Reply-To: <42199B38.3050806@diku.dk>
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
prev parent reply other threads:[~2005-02-22 20:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-21 8:26 error binding to event channel Jacob Gorm Hansen
2005-02-22 20:55 ` Jacob Gorm Hansen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=421B9C2E.8050300@diku.dk \
--to=jacobg@diku.dk \
--cc=xen-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.