WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] how to read value from xenstore inside kernel

To: Kuriakose Mathew <kmathew123@xxxxxxxxx>
Subject: Re: [Xen-devel] how to read value from xenstore inside kernel
From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Date: Mon, 17 Aug 2009 10:38:27 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 17 Aug 2009 07:45:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <9e81bde0908162340h42011f5cn7606c962fda89da4@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <9e81bde0908162340h42011f5cn7606c962fda89da4@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.19 (2009-01-05)
On Mon, Aug 17, 2009 at 12:10:21PM +0530, Kuriakose Mathew wrote:
> Can someone please point me to a code( or help me to find some code)where a
> value corresponding to a key is read from Xenstore inside the kernel . My
> requirement is to read a xenstore value from netback.c .

In drivers/xen/blkback/xenbus.c, the function backend_changed exclusivy job is
to read those values. Here is an example:

278         err = xenbus_scanf(XBT_NIL, dev->nodename, "physical-device", 
"%x:%x",
279                            &major, &minor);

I would recommend you get a copy of "Understanding Xen" to understand how
XenStore "transfers" the data from one domain to another.

> 
> Thanks
> Mathew

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel