From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Owens Date: Fri, 05 Oct 2001 05:58:58 +0000 Subject: Re: Unloading drivers, start-up, shut-down and a rewrite (a problem) Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, 05 Oct 2001 01:03:19 +0100, Stamatis Mitrofanis wrote: >It's when you have many hotpluggable devices of the same type (handled >by the same driver). Managing a reference (device) count for each driver >from the hotpug scripts is necessary for unloading the driver _only_ >after the last such device is unplugged. That means we are changing the meaning of the module use count on drivers from "number of devices opened" to "number of devices present and activated". Not such a bad idea, there has long been a problem with network drivers that the use count can be zero but the driver code can be active, rmmod gets very nasty then. Before I write the code, what needs to change in user space to match the new semantics? Every device activation and inactivation must adjust the use count of the supporting module. That is easy for hotplug but what about PCMCIA and fixed devices? In particular ifconfig eth0 up must adjust the use count of the module controlling eth0. A partial solution that only works for hotplug is not a good idea. Can we get a consistent user space framework for the new semantics? _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel