From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Tue, 06 Feb 2001 01:40:02 +0000 Subject: Re: Adding PCMCIA support to the kernel tree -- developers needed. 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 suspect the way this "ought" to be done will involve some chitchat between the bus driver (USB, PCI, ...) and the module subsystem, and not be visible to most device drivers. It might be as simple as the module use count is today, but tracking devices not opens. Developers would have a way to tell "rmmod" to ignore device count ... maybe "module device count goes to zero" could enable autoclean, not "module open count goes zero" as it stands today. (Just thinking out loud about the details, I'm not sure how that new model you sketched applies to use/open counts.) - Dave ----- Original Message ----- From: "Keith Owens" To: Sent: Monday, February 05, 2001 2:13 AM Subject: Re: Adding PCMCIA support to the kernel tree -- developers needed. > On Sun, 04 Feb 2001 17:56:13 -0800, > David Brownell wrote: > >I'm not sure I'd want module "use" count to be affected by plugging and > >unplugging, but I'd like to have that kind of way to track the number of > >devices associated with a module! > > I was thinking of the model of one device, one module. But we have > another model as well, one module handling multiple devices. All the > state is internal to the module and not visible to the rest of the > kernel. I wonder if we need per-device register and unregister calls > as well as per-module. > > > _______________________________________________ > 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 _______________________________________________ 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