From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Sat, 31 Mar 2001 16:05:18 +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 > >I'd hate to change the semantics of the "use" count (which is really > >used as "open" count) > > No, the module use count is a reference count on the module, not an > open count. It's not a reference count, since it doesn't address the case where another module references it ... "rmmod" uses additional magic to handle such dependency cases. Since the counter can be (as you highlighted!) updated at any time, there's nothing to make it be a "reference" count. The networking framework is pretty explicit that it must be used as an "open" count (SET_MODULE_OWNER arranges this). Perhaps the best way to describe this counter is that it's there, and "rmmod" won't remove modules where it's nonzero. (Or has never been nonzero...) Which doesn't seem to accomodate the needs of a hotplug-oriented world. - 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