Re: [linux-usb] Re: [patch] drivers/usb/usb.c: auto loading of USB

Riley Williams (rhw@MemAlpha.CX)
Tue, 21 Dec 1999 23:56:52 +0000 (GMT)


Hi Tim, Thomas.

>> I did just do that (about 3 hours ago). usb-uhci did not go
>> away. USB still works. Note I did not specify -k on the modprobe
>> command line.

> I think Alan's point is that you are then stuck with the usb
> stuff loaded even if nothing's using it. Usb is kind of a
> special case though, I guess.

> I can now see the problem with post-install rules, but I still
> find magic module aliases icky. One thing that crossed my mind
> was to make rmmod -a a bit smarter: if it notices that a module
> that sits above another (i.e. specified with the 'above' keyword
> in modules.conf) disappears, it could try to remove the lower
> module. But then that requires that everyone move to a version
> of modutils that (a) supports the 'above' keyword and (b) is
> smart about removing modules like that.

Surely a better option would be to have rmmod remove modules in
sequence, and not consider any module until it has already considered
all modules that module is used by. That would implicitly result in
the removal of the whole chain of modules rather than just the one at
the top as currently appears to be the case.

Best wishes from Riley.

* Copyright (C) 1999, Memory Alpha Systems.
* All rights and wrongs reserved.

+----------------------------------------------------------------------+
| There is something frustrating about the quality and speed of Linux |
| development, ie., the quality is too high and the speed is too high, |
| in other words, I can implement this XXXX feature, but I bet someone |
| else has already done so and is just about to release their patch. |
+----------------------------------------------------------------------+
* http://www.memalpha.cx/Linux/Kernel/

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