Re: Unused modules in 2.6.x

From: Greg KH
Date: Wed Feb 25 2009 - 14:45:38 EST


On Wed, Feb 25, 2009 at 05:52:49PM +0000, Alex Buell wrote:
> Hi,
>
> Perhaps I missed something when the 2.6.x kernels got started a few
> years back, but why is it not possible for unused modules to be
> automatically unloaded anymore i.e with rmmod -a? I remember being able
> to do that with the 2.2.x and 2.4.x series a long time ago.

Because if you do that, lots of modules that were being "used" by the
system would get unloaded (usb host controllers, network drivers, etc.)

So it makes sense not to do that anymore. See the linux-kernel archives
about 6 years ago for details if you are curious about this historical
issue (hint, it could burn you very badly even in 2.2 and 2.4...)

good luck,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/