Re: module use count & unloading

From: Greg KH
Date: Thu Dec 18 2003 - 12:01:43 EST


On Thu, Dec 18, 2003 at 04:03:11PM +0100, Thomas Koeller wrote:
> Hi,
>
> I just learned that it is expected behavior for a module
> to be in use while having an in-use count of zero, see
> http://bugme.osdl.org/show_bug.cgi?id=1693. If this is
> so, how am I supposed to know whether a module can safely
> be unloaded? It also seems the old 'autoclean / modprobe -k'
> functionality from 2.4 is no longer available in 2.6.

It wasn't safe to do that in 2.4 either. That would easily unload your
USB controller drivers, USB keyboard and USB mouse drivers, as they all
do not increment their in-use count.

thanks,

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/