|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] netback module exit function
On Wed, 2007-10-24 at 16:10 +0100, Kieran Mansley wrote:
> I just noticed that netback doesn't have a module_exit function. This
> surprises me given how much the module_init function does. Surely some
> of this needs cleaning up on exit? e.g. a call to
> xenbus_unregister_driver() would be wise.
>
> Perhaps it's assumed that netback is never unloaded?
Not having a module_exit function means it can't be unloaded (without
forcing it).
sys_delete_module(const char __user *name_user, unsigned int flags)
{
...
/* If it has an init func, it must have an exit func to unload
*/
if ((mod->init != NULL && mod->exit == NULL)
|| mod->unsafe) {
forced = try_force_unload(flags);
if (!forced) {
/* This module can't be removed */
ret = -EBUSY;
goto out;
}
}
...
}
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|