[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Re: [PATCH] [vTPM] Not building vTPM frontend as module
On Wed, 2006-05-10 at 15:55 +0100, Keir Fraser wrote: > Even if it is unsafe to unload the module, there is still enormous > benefit in allowing to build as a module as it allows the user to > choose whether or not to load it in the first place! > > I suggest you add __unsafe(THIS_MODULE) to the end of your module_init > function, as we have done for netback and blkback. This will make it > impossible for the user to unload the module, and print a message to > the kernel log explaining why. If a module_init() is present but a module_exit() is not then you cannot unload the module. (unless you enable CONFIG_MODULE_FORCE_UNLOAD and use rmmod's --force option, in which case your kernel become tainted) Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |