|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] how to read value from xenstore inside kernel
Thanks for the response. But I want the value to be read in netback.c . I checked the drivers/xen/netback/xenbus.c and found some functions using xenbus_scanf . But couldn't find where these functions are getting called.
Whether it will be possible to directly call xenbus_scanf directly in netback.c ? I want a value in xenstore to be read in some function in netback.c.
Please help. -Mathew
On Mon, Aug 17, 2009 at 8:08 PM, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> wrote:
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
|
|
|
|
|