linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: How to hot unplug?
Date: Tue, 09 Jul 2002 14:50:04 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-102622610122154@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-102622053714961@msgid-missing>

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

  reply	other threads:[~2002-07-09 14:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-09 13:14 How to hot unplug? ming deng
2002-07-09 14:50 ` David Brownell [this message]
2002-07-09 15:07 ` ming deng
2002-07-09 17:29 ` Stephen Williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-hotplug-102622610122154@msgid-missing \
    --to=david-b@pacbell.net \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).