From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Owens Date: Sat, 31 Mar 2001 16:18:31 +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 Sat, 31 Mar 2001 08:05:18 -0800, David Brownell wrote: >It's not a reference count, since it doesn't address the case where >another module references it It is a dynamic reference count. The reference from another module is a static reference count. Historical. >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 If networking framework says that then it is wrong. >(SET_MODULE_OWNER arranges this). SET_MODULE_OWNER only exports the address of the module structure so external code can adjust the use count. Normally that is via the open routine, but file systems just do one MOD_INC_USE_COUNT in fs/super.c so it is a mount count, not an open count. Some netfilter modules want to count the number of packets controlled by that module, again not an open count. _______________________________________________ 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