 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Easy user-space usage of xenstore
 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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |