All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Christian.Limpach@cl.cam.ac.uk
Cc: nahieu@gmail.com, xen-devel@lists.xensource.com
Subject: Re: watch event for die domain ?
Date: Sun, 11 Sep 2005 11:26:46 +1000	[thread overview]
Message-ID: <1126402006.21731.23.camel@localhost.localdomain> (raw)
In-Reply-To: <3d8eece205091016531b985986@mail.gmail.com>

On Sun, 2005-09-11 at 00:53 +0100, Christian Limpach wrote:
> On 9/10/05, NAHieu <nahieu@gmail.com> wrote:
> > I am writing a small application to watch for xenstore events. I want
> > to know when a specific domain shutdown or reboot. It is best to watch
> > it via xenbus interface, but how? Is there any event or node can give
> > me such an event?
> 
> You can have a watch on @releaseDomain, the watch will fire whenever
> xenstored unmaps the store page it has mapped from the domain. 
> There's also @introduceDomain for when xenstored maps the page after
> the domain was created.

Speaking of which, I have a patch which changes over introduce/release
to a write/rm in /tool/xenstored/domain/<id>, so this will combine
nicely, too.  (Part of the patch series to make xenstored restartable).

This is probably more generically useful, and avoids turning xenstored
into an event mechanism 8)

Cheers,
Rusty.
-- 
A bad analogy is like a leaky screwdriver -- Richard Braakman

      reply	other threads:[~2005-09-11  1:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-10 14:15 watch event for die domain ? NAHieu
2005-09-10 23:53 ` Christian Limpach
2005-09-11  1:26   ` Rusty Russell [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=1126402006.21731.23.camel@localhost.localdomain \
    --to=rusty@rustcorp.com.au \
    --cc=Christian.Limpach@cl.cam.ac.uk \
    --cc=nahieu@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 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.