From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Tue, 09 Jul 2002 14:50:04 +0000 Subject: Re: How to hot unplug? 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 ming deng wrote: > When a USB device is detached, I want to do something to clear up, like > unmount the directory for USB Mass Storage devices. Is there any > function in hotplug supporting that? You get a notification that the device was removed, but so far nothing uses it. Feel free to develop appropriate patches. In the case of unmounting, I'd look at the issues for mounting devices first. (My expectation is that the 2.5 driverfs and disk model unification work will make that workable.) One thing that folk have wanted to do is unload drivers that are no longer needed. Although there's a lot of email on linux-kernel about module unload races, the real reason that's not done is that the kernel doesn't track which drivers are needed: only which are in curreng use. Having userspace guess such stuff is error prone at best. - Dave ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Stuff, things, and much much more. http://thinkgeek.com/sf _______________________________________________ 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