From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 16 Oct 2001 05:37:32 +0000 Subject: Re: Device count (to be done with) 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 Tue, Oct 16, 2001 at 02:03:23PM +1000, Keith Owens wrote: > > I am still not convinced that you need a separate count field, if > _either_ count is non-zero then the module will not be unloaded. A > single count is all that is required. I agree, I think the current module count is just fine. Again, what is the problem that you are trying to solve here? The fact that when a device is removed, the driver is unloaded? Is that a good goal? And if so, why? And why can't the current counter be used for just that reason? Right now there is a history of only incrementing the module usage count when a userspace program opens a file through the driver. That can _easily_ be changed to increment and decrement when the device is seen, and removed respectively, for hotpluggable devices. The only ones who will be inconvenienced would be the developers, hence the present situation :) thanks, greg k-h _______________________________________________ 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