All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Hanquez <vincent.hanquez@cl.cam.ac.uk>
To: Rian Hunter <rian@MIT.EDU>
Cc: xen-devel@lists.xensource.com
Subject: Re: Easy user-space usage of xenstore
Date: Fri, 30 Jun 2006 14:29:01 +0200	[thread overview]
Message-ID: <20060630122901.GA13070@snarc.org> (raw)
In-Reply-To: <1151613115.5833.10.camel@cooked.boston.ximian.com>

On Thu, Jun 29, 2006 at 04:31:55PM -0400, Rian Hunter wrote:
> Basically my approach was this:
> 
> 1. Process in domain-0 writes a key to /local/domain/<DomID>.  (<DomID>
> refers to the domain id number assigned to a newly created vm)
> 2. Process in unprivileged domain reads from /local/domain/<DomID>
> 
> Of course you can see my problem: The unprivileged domain has no idea
> which /local/domain/<DomID> is his! My first question: Is there a way
> for an unprivileged domain to find out his <DomID> in user-space?

you can access /local/domain/<self>/.. by just using relative path instead
of absolute path.

ex: if you want to read /local/domain/5/something/x from domain 5 you can
just do :

value = xs_read("something/x");

Cheers,
-- 
Vincent Hanquez

  parent reply	other threads:[~2006-06-30 12:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-29 20:31 Easy user-space usage of xenstore Rian Hunter
2006-06-30 12:21 ` Jacob Gorm Hansen
2006-06-30 14:32   ` Rian Hunter
2006-06-30 12:29 ` Vincent Hanquez [this message]
2006-06-30 14:34   ` Rian Hunter
2006-06-30 14:50     ` Ewan Mellor

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=20060630122901.GA13070@snarc.org \
    --to=vincent.hanquez@cl.cam.ac.uk \
    --cc=rian@MIT.EDU \
    --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.