mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Fredrik Tolf <fredrik@dolda2000.com>
To: Greg KH <greg@kroah.com>
Cc: Fredrik Tolf <fredrik@dolda2000.com>, linux-kernel@vger.kernel.org
Subject: Re: Why is hotplug a kernel helper?
Date: Thu, 4 Dec 2003 04:38:29 +0100	[thread overview]
Message-ID: <16334.44085.362449.278626@pc7.dolda2000.com> (raw)
In-Reply-To: <20031204022911.GA23761@kroah.com>

Greg KH writes:
 > On Thu, Dec 04, 2003 at 03:00:51AM +0100, Fredrik Tolf wrote:
 > > Greg KH writes:
 > >  > On Thu, Dec 04, 2003 at 01:04:44AM +0100, Fredrik Tolf wrote:
 > >  > > If you don't mind me asking, I would like to know why the kernel calls
 > >  > > a usermode helper for hotplug events? Wouldn't a chrdev be a better
 > >  > > solution (especially considering that programs like magicdev could
 > >  > > listen in to it as well)? 
 > >  > 
 > >  > Please see the archives for why this is, it's been argued many times.
 > > 
 > > I am sincerely sorry for being a bother, but I have spent several
 > > hours searching far and wide for information on it, both in the
 > > archives and generally on the web, without any luck in finding
 > > anything. If it's not too much to ask, would you be as kind as to
 > > provide a pointer?
 > 
 > Here was the latest thread where this was brought up:
 > 	http://marc.theaimsgroup.com/?t=105544548100008
 > 
 > I would suggest reading this post from Linus for a quick summary:
 > 	http://marc.theaimsgroup.com/?l=linux-kernel&m=105552804303171
 > 

Thank you for those references. I must have mistyped something while
searching, since all the keywords I searched for were in the
text... Sorry for wasting your time on that.

 > > Btw., Is there any preferred method of announcing hotplug events to
 > > user interfaces?
 > 
 > Yes there is a standard.  Have you read the docs at
 > http://linux-hotplug.sf.net/ ?  Also my 2001 OLS paper details the
 > format the messages should be in, but it's a bit out of date as to the
 > new values that the 2.6 kernel sends.

No, I haven't. I just put that question in the mail as a side-thing. I
had not expected more than a yes/no reply. In any case, I will read
it. Thanks again.

 > What do you want to use the hotplug interface for that it currently does
 > not do?

Admittedly, I'm still using the RH8 hotplug scripts, and I suspect
improvements have been made since then. I was mainly looking for a way
to auto-mount USB mass storage devices without having to reconfigure
anything as root. I have all the info I need now, though.

Thank you very much for your help.

Fredrik Tolf


  parent reply	other threads:[~2003-12-04  3:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-04  0:04 Fredrik Tolf
2003-12-04  1:13 ` Greg KH
2003-12-04  2:00   ` Fredrik Tolf
2003-12-04  2:29     ` Greg KH
2003-12-04  2:37       ` Tim Hockin
2003-12-04  3:38       ` Fredrik Tolf [this message]
2003-12-04  7:41         ` Greg KH
2003-12-04 11:54         ` Joel Becker
     [not found] <YPev.5Y5.33@gated-at.bofh.it>
     [not found] ` <YQkL.81w.41@gated-at.bofh.it>
     [not found]   ` <YR6p.Jy.5@gated-at.bofh.it>
     [not found]     ` <YRzn.1mB.1@gated-at.bofh.it>
     [not found]       ` <YVjJ.7Np.9@gated-at.bofh.it>
2003-12-04 11:17         ` Ihar 'Philips' Filipau
2003-12-04 16:38 David Brownell

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=16334.44085.362449.278626@pc7.dolda2000.com \
    --to=fredrik@dolda2000.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@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

Powered by JetHome