From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: how to read value from xenstore inside kernel Date: Mon, 17 Aug 2009 10:38:27 -0400 Message-ID: <20090817143826.GA4551@phenom.dumpdata.com> References: <9e81bde0908162340h42011f5cn7606c962fda89da4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <9e81bde0908162340h42011f5cn7606c962fda89da4@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kuriakose Mathew Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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@lists.xensource.com > http://lists.xensource.com/xen-devel