From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hinds Date: Fri, 05 Oct 2001 06:25:06 +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, Oct 05, 2001 at 03:58:58PM +1000, Keith Owens wrote: > > 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? Just so you know, and not saying whether it is a better or worse solution, the way PCMCIA drivers handle this, is that there's a separate interface, /proc/bus/pccard/drivers, that has "use counts" for PCMCIA drivers that indicate how many physical devices are currently associated with each driver. These use counts are independent of the regular module use counts. -- Dave _______________________________________________ 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