From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Owens Date: Tue, 16 Oct 2001 05:59:36 +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 Mon, 15 Oct 2001 22:37:32 -0700, Greg KH wrote: >Right now there is a history of only incrementing the module usage >count when a userspace program opens a file through the driver. The module use count has *NEVER* been defined as an open count, it is a reference count that sometimes is the same as the count of open files. Too many developers have made the mistake of assuming that use count = open count. For some modules the use count reflects the number of data packets, others count the number of device commands in flight, others just set the count to 1 and maintain their own data structures, only setting the use count to 0 when all their data structures are free. _______________________________________________ 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