xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Nupur Ghatnekar <nupurghatnekar@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: notification in xen
Date: Thu, 10 May 2012 11:37:17 -0400	[thread overview]
Message-ID: <20120510153717.GD6389@phenom.dumpdata.com> (raw)
In-Reply-To: <CAO8_4VrKvmUKMEOqfmgF=Z0e9Gr96mCR0-3eRfcgeZ2qZhbtjQ@mail.gmail.com>

On Wed, Mar 21, 2012 at 11:50:48AM +0530, Nupur Ghatnekar wrote:
> hey,
> For event notification there are 2 functions that i came across.
> 
> notify_remote_via_irq(int irq)
> notify_remote_via_evtchn(int port)
> 
> I tried to use those, but didnt know how to check whether notification has
> occurred. Is there a way in which i can check the success of the commands.

You should also use 'request_irq' to bind yourself to the IRQ number.
That way your handler would awake when it is done.

Look at how the existing front and backend drivers do it.

> 
> Thanks.
> 
> -- 
> 
> Nupur Ghatnekar

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

      parent reply	other threads:[~2012-05-10 15:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21  6:20 notification in xen Nupur Ghatnekar
2012-03-21  8:47 ` Jan Beulich
2012-03-22 11:47   ` Nupur Ghatnekar
2012-05-10 15:37 ` Konrad Rzeszutek Wilk [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=20120510153717.GD6389@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=nupurghatnekar@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).