[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Convert balloon driver to xenstore
On 8/3/05, Anthony Liguori <aliguori@xxxxxxxxxx> wrote: > Rusty Russell wrote: > > >On Tue, 2005-08-02 at 06:51 -0700, Dan Smith wrote: > > > > > >Generally, you will want to do a module_init() and initialize your > >driver. If it's in domain 0, it needs to be initialized later (the > >store isn't up yet): the standard way of doing this is a notifier chain. > > > >Something like the following: > > > >static struct notifier_block store_notify = > >{ > > .notifier_call = balloon_setup, > >}; > > > >static int balloon_init() > >{ > > if (!xen_start_info.store_evtchn) > > register_xenstore_notifier(&store_notify); > > else > > balloon_setup(&store_notify, 0, NULL); > > return 0; > >} > > > > > How does this look? > looks nice to me. why didnt you provice also the patch for balloon ;-) regards, aq _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |