This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] Re: [PATCH] [vTPM] Not building vTPM frontend as module

On 10 May 2006, at 16:02, Ian Campbell wrote:

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)

Even better. We should be using this for netback and blkback too in that case.

 -- Keir

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>