From mboxrd@z Thu Jan 1 00:00:00 1970 From: Douglas Gilbert Date: Sun, 01 Apr 2001 05:26:08 +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 David Brownell wrote: > I'd argue those are all logically equivalent to "open": dynamic > behavior (as you noted) that needs to prevent "rmmod". > > One hopes that opening a block device like /dev/sda1 with > a user mode tool, rather than "mount", will prevent "rmmod"... Yes. Opening /dev/sda1 increases the usage count on the sd_mod.o module and the associated lower level adapter driver (e.g. aic7xxx.o). The SCSI mid-level (if it is a module) has its usage count bumped when any lower level adapter driver (e.g. aic7xxx.o) or upper level driver (sd_mod.o) registers itself. Seen from the sd driver's POV, both mount and dd cause sd_open() to be called and thus have the same affect on usage counts. Doug Gilbert _______________________________________________ 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