Re: Cannot unload some modules

Keith Owens (kaos@ocs.com.au)
Mon, 01 Oct 2001 12:41:51 +1000


On Thu, 27 Sep 2001 15:54:19 +0200,
Raúl Núñez de Arenas Coronado <dervishd@jazzfree.com> wrote:
> I have a problem with some modules, specially with 'dummy.o' (the
>dummy network device driver) and some USB ones: they aren't unloaded,
>even when unused and autocleanable, issuing two or more 'rmmod -a'
>commands.

Auto unload ignores modules that have not been used, to avoid a race
condition. Either use the module or don't auto load them in the first
place.

> BTW, I've noticed too that the serial module sometimes has a
>negative value in its 'use' count :!!

That could be the serial driver saying that it handles its own unload
count but is more likely to be a bug in the code. Report it to the
serial driver maintainer.

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