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