[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: Fri, 28 Aug 2009 17:21:40 +0530
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
  • Delivery-date: Fri, 28 Aug 2009 04:52:02 -0700
  • Domainkey-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=Ci+nC3lONeqJFYp2u9ndAAyAyVPBvuOa/MTZR2+J7BMXt3yrrJFaUpImKKOdw1o/3s O0usjNK43A3q2Nk79iXMfH6MT0H6WPd+8juKNIiNtp+VSMY7V3RzHqkQ6Ys0vNmbpAbr 32SwNBSMFMFqJzcuxJ6fkcLxxzi9RD1lzD21c=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

The .node  member I initialized while declaring  and .callback I initialized in netbacl init function (just above where I use register_xenbus_watch )as  shown below. (used balloon.c as guideline)


static struct xenbus_watch target_watch =
{
    .node = "memory/target"
   
};

static int __init netback_init(void)
{
......
target_watch.callback = watch_target;
... register_xenbus_watch(&target_watch);
...
}

Thanks
Mathew

On Fri, Aug 28, 2009 at 5:14 PM, James Harper <james.harper@xxxxxxxxxxxxxxxx> wrote:
> When I reboot , it is hung at the point above the
> 'register_xenbus_watch(&target_watch)' .
> Neither of the printk messages are dispayed.
>

Please show the code where you initialize target_watch

James

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.