From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Fri, 05 Oct 2001 07:21:06 +0000 Subject: Re: Unloading drivers, start-up, shut-down and a rewrite (a problem) 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 > The requirement is just that modprobe gets a new command-line paremeter > which, when given in a call to load/unload a module, will also > increment/decrement the module's reference count. I.e. if the parameter > is "--ref" and the module ABC is not loaded, then the following should > result in module ABC being in memory with a reference count of 1: Modulo the issue about making a new "devices per driver" counter, I'd also like to raise the issue of whether this counter shouldn't be driven entirely by the kernel code binding drivers to devices. That is, code the USB or PCI layers would increment/decrement the counter when the binding was successfully achieved. No changes to the device drivers needed, but having the kernel maintain those counters would be safer than doing it in user mode. - Dave _______________________________________________ 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