Greg KH <gregkh@suse.de> 06.09.09 05:16 >>> On Sun, Sep 06, 2009 at 12:26:32AM +0200, Jan Engelhardt wrote: On Saturday 2009-09-05 23:32, Greg KH wrote: On Sat, Sep 05, 2009 at 09:59:34PM +0200, Jan Engelhardt wrote: And, by building them into the kernel, you actually save a bit of space, as the kernel can throw away the __init section, which it does not for kernel modules.
Why is that, what requires __init sections of modules?
It's the way kernel code works. It can throw away code sections that it knows it is not going to need after startup. For the same code as a module, it does not.
__init gets discarded for modules after they finished initialization just as for the base kernel (and really the amount of what gets discarded grew in the relatively recent past, plus there are patches pending for .32 to further improve this). Jan -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org