Re: Driverfs updates

From: Thunder from the hill (thunder@ngforever.de)
Date: Tue Jul 09 2002 - 07:33:47 EST


Hi,

On Tue, 9 Jul 2002, David D. Hagood wrote:
> Now, we have things like Firewire, USB, Bluetooth, PCMCIA, Hot-Plug PCI
> and TCP/IP attached devices, all of which can come and go as they
> please. Loadable modules made supporting such things easy - witness the
> trouble WinNT had dealing with PCMCIA vs. Linux.
>
> However, if you cannot unload modules, then the kernel grows without
> bound - the mere fact that a Bluetooth camera came into range causes the
> kernel to grow as the driver gets loaded. True, you could go in as root
> and clean up, but it seems to me that requiring root to do that sort of
> periodic maintainance prevents Linux from being able to be the Energizer
> Bunny OS - "it keeps going and going...." without much diddling.

If you plug any hotplug devices, the kernel allocates some space for the
control structures, and if you unplug it, structures get unallocated. No
need to do it as a module. Kernel grows _and_ shrinks on runtime, even
with CONFIG_MODULE=n.

> It seems to me the problem is in designing modules to unload, and saying
> "Then don't unload them" is not even a band-aid - it is willful
> ignorance. If there is a potential race condition unloading a module,
> then the module is BROKEN.

Our discussion is not _whether_ to support module unloading, but how to
support it sensibly on SMP systems.

                                                        Regards,
                                                        Thunder

-- 
(Use http://www.ebb.org/ungeek if you can't decode)
------BEGIN GEEK CODE BLOCK------
Version: 3.12
GCS/E/G/S/AT d- s++:-- a? C++$ ULAVHI++++$ P++$ L++++(+++++)$ E W-$
N--- o?  K? w-- O- M V$ PS+ PE- Y- PGP+ t+ 5+ X+ R- !tv b++ DI? !D G
e++++ h* r--- y- 
------END GEEK CODE BLOCK------

- 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/



This archive was generated by hypermail 2b29 : Mon Jul 15 2002 - 22:00:15 EST