linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Williams <steve@icarus.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: How to hot unplug?
Date: Tue, 09 Jul 2002 17:29:58 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-102623588102383@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-102622053714961@msgid-missing>


mingd@oeone.com said:
> thanks. And I found out $REMOVER works. But can someone tell me the
> rationale behind using $REMOVER instead of using "remove"? 

The REMOVER variable is set to be a command to execute when the
device is removed. The shell script equivalent of a function pointer:-)

This is very much faster then all the lookups and matching that is
done on device add, and is easily tailored to the specific device,
as the device add script can set whatever REMOVER is appropriate.
It is also compatible with the default behavior of ignoring remove.
-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
steve at picturel.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."

abuse@xo.com
uce@ftc.gov




-------------------------------------------------------
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

      parent reply	other threads:[~2002-07-09 17:29 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
2002-07-09 15:07 ` ming deng
2002-07-09 17:29 ` Stephen Williams [this message]

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-102623588102383@msgid-missing \
    --to=steve@icarus.com \
    --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).