From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Tue, 29 Nov 2011 03:45:29 +0800 References: <201111290028.01655.lindner_marek@yahoo.de> <1322497717-21268-2-git-send-email-lindner_marek@yahoo.de> <20111128190245.GE13600@lunn.ch> In-Reply-To: <20111128190245.GE13600@lunn.ch> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111290345.29771.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH 2/3] batman-adv: convert batman iv algorithm to use dynamic infrastructure Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Tuesday, November 29, 2011 03:02:45 Andrew Lunn wrote: > > +static struct bat_algo bat_algo_iv __read_mostly = { > > > > .name = "BATMAN IV", > > > > + .bat_ogm_init = bat_ogm_init, > > + .bat_ogm_init_primary = bat_ogm_init_primary, > > + .bat_ogm_update_mac = bat_ogm_update_mac, > > + .bat_ogm_schedule = bat_ogm_schedule, > > + .bat_ogm_emit = bat_ogm_emit, > > + .bat_ogm_receive = bat_ogm_receive, > > > > }; > > This needs an .owner = THIS_MODULE, > > so you can do reference counting on the module. It is not a separate module .. Cheers, Marek