|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] how to read value from xenstore inside kernel
Thanks James. I will try to get the crash message but not how to get it in a file. When I restart the system after making the change, it gets rebooted at this point. So I have to find a way to get those message displayed while a system is booting. I ll try to get it.
Also regarding 'watch' , it is called when the value of key changes but if I want to read some value which is static then will this help? Not sure if I am right.
-Mathew
On Tue, Aug 25, 2009 at 4:37 PM, James Harper <james.harper@xxxxxxxxxxxxxxxx> wrote:
> 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 ?
Not sure how much this helps, but you should not be re-reading from
xenbus every time a packet is sent. That would involve huge per-packet
overheads. You can read it initially and then set a 'watch' on the value
to get notified every time it changes.
Have you got a copy of the crash message?
James
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] how to read value from xenstore inside kernel, Kuriakose Mathew
- Re: [Xen-devel] how to read value from xenstore inside kernel, Konrad Rzeszutek Wilk
- Re: [Xen-devel] how to read value from xenstore inside kernel, Kuriakose Mathew
- Re: [Xen-devel] how to read value from xenstore inside kernel, Kuriakose Mathew
- RE: [Xen-devel] how to read value from xenstore inside kernel, James Harper
- Re: [Xen-devel] how to read value from xenstore inside kernel, Kuriakose Mathew
- RE: [Xen-devel] how to read value from xenstore inside kernel, James Harper
- Re: [Xen-devel] how to read value from xenstore inside kernel, Kuriakose Mathew
- RE: [Xen-devel] how to read value from xenstore inside kernel, James Harper
- Re: [Xen-devel] how to read value from xenstore inside kernel, Kuriakose Mathew
- Re: [Xen-devel] how to read value from xenstore inside kernel, Kuriakose Mathew
- Re: [Xen-devel] how to read value from xenstore inside kernel, Kuriakose Mathew
|
|
|
|
|