|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] how to read value from xenstore inside kernel
Hi ,
I have been trying to use to xenbus_read.
I added the below code in netback.c , static void net_tx_action(unsigned long unused) function.
char * test; const char *nodename = "console";
test = xenbus_read(XBT_NIL, nodename, "limit", NULL);
It is compiling fine. But when the kernel is crashing at this point during runtime. I expect to read the /local/domain/0/console/limit , which I am able to read from shell using
xenstore-read . Am I missing something ?
Thanks Mathew
On Mon, Aug 17, 2009 at 11:50 PM, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> wrote:
On Mon, Aug 17, 2009 at 11:25:36PM +0530, Kuriakose Mathew wrote:
> 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.
I recommend you get acquinted with 'cscope' and run under your linux directory this
command: 'make cscope' to create the cscope files. Then look for xenbus_scanf.
> 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
Yes, if you have all of the #include files set right.
> netback.c.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|