From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hinds Date: Sat, 31 Mar 2001 03:48:21 +0000 Subject: Re: (remove) event not supported. 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, Mar 30, 2001 at 06:03:32PM -0800, Keith Owens wrote: > > AFAICT there is no need for another count, you can do MOD_INC_USE_COUNT > in any module function. The use count does not have to be for just > open. Add MOD_INC_USE_COUNT to the probe() function for each new > device. So what if I want to unload a module for a device that still exists? These counts are also used in this way for non-hot-plugged devices. For PCMCIA, device counts for each driver are published in /proc/bus/pccard/drivers, and cardmgr uses this information to help decide when to unload drivers. -- Dave _______________________________________________ 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