From: Kuriakose Mathew Subject: Re: how to read value from xenstore inside kernel Date: Fri, 28 Aug 2009 17:21:40 +0530 Message-ID: <9e81bde0908280451j5afd68bn2ad99db9866d4276@mail.gmail.com> References: <9e81bde0908162340h42011f5cn7606c962fda89da4@mail.gmail.com> <20090817143826.GA4551@phenom.dumpdata.com> <9e81bde0908171055q5504683cm19cb2c70e24dfb88@mail.gmail.com> <20090817182023.GA6144@phenom.dumpdata.com> <9e81bde0908250357j5678af58ob56633561bf5a2bb@mail.gmail.com> <9e81bde0908280152r35c7b06ck866ab69487e0aa16@mail.gmail.com> <9e81bde0908280441h2961f63bkf858c6812caeb81e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0719899659==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper Cc: xen-devel@lists.xensource.com, Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org --===============0719899659== Content-Type: multipart/alternative; boundary=0016e64098b2a690360472324e36 --0016e64098b2a690360472324e36 Content-Type: text/plain; charset=ISO-8859-1 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 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 > --0016e64098b2a690360472324e36 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The .node=A0 member I initialized while declaring=A0 and .callback I initia= lized in netbacl init function (just above where I use register_xenbus_watc= h )as=A0 shown below. (used balloon.c as guideline)


static struc= t xenbus_watch target_watch =3D
{
=A0=A0=A0 .node =3D "memory/target"
=A0=A0=A0
};
<= br>static int __init netback_init(void)
{
......
target_watch.call= back =3D watch_target;
... register_xenbus_watch(&target_watch);
= ...
}

Thanks
Mathew

On Fri, Aug 28, 2009= at 5:14 PM, James Harper <james.harper@bendigoit.com.au> 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

--0016e64098b2a690360472324e36-- --===============0719899659== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0719899659==--