From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Date: Sun, 21 Jan 2001 21:12:14 +0000 Subject: unloading drivers and usage counters Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi, going through the hotplugging scripts I noticed that there's no good way to unload modules. A time based approach cannot be used due to race conditions. Unloading on device removal requires keeping a usage counter in user space. This seems to be a brittle approach. Not increasing the module usage counters on connect seems to be the wrong strategy. The desire to keep the modules unloadable has come back to bite us into our behind. If the usage counters were increased for each connected device unloading would come natural. A patch to disconnect drivers by an ioctl has been posted. It would allow forced unload. Regards Oliver _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel