| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
 Re: [Xen-devel] how to read value from xenstore inside kernel
 
To: James Harper <james.harper@xxxxxxxxxxxxxxxx>From: Kuriakose Mathew <kmathew123@xxxxxxxxx>Date: Tue, 25 Aug 2009 18:14:46 +0530Cc: xen-devel@xxxxxxxxxxxxxxxxxxx,	Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>Delivery-date: Tue, 25 Aug 2009 05:45:13 -0700Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;	h=mime-version:in-reply-to:references:date:message-id:subject:from:to	:cc:content-type;	b=Uxarc69pOg/DE9YYRgloF5caiOYVDuowwV5TrxVM7UdYuX6y/Y6TjNpUo/B17AorN1	T53Zo6KlKiu6dzMnxj57mN3eRAwuR7TodfZNRzi8hRNH0wW3xwGSM3dfGXDDeavp3FAz	5rI7rV8aeo58Sa09YTFLXC8K3Q0Hvi9HxVNms=List-id: Xen developer discussion <xen-devel.lists.xensource.com> 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 ,Not sure how much this helps, but you should not be re-reading from>
 > 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 ?
 
 
 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
 
 |