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: hotplug TTD
Date: Thu, 11 Jan 2001 18:04:42 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-97923705626257@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-97901650309422@msgid-missing>

Hi Dave,

> On Thu, Jan 11, 2001 at 08:40:44AM -0800, David Brownell wrote:
> > 
> > Though when I started to think about how to do that stuff robustly, I
> > began to wish a kernel "module" didn't stop being a visible component
> > when it gets statically linked.  There's a rather arbitrary line between
> > static linking (build tools) and dynamic linking (modutils).  Hotplugging
> > a device shouldn't need to care so much how the driver module is linked.
> 
> Yes this is useful.  For PCMCIA, I created /proc/bus/pccard/drivers to
> list what drivers are present, as static or modules.  But a kernel
> wide solution would be better (even if it is /proc/bus/*/drivers).

It'd not just be "better", I suspect...

The first USB hotplug "/etc/usb/policy" checked /proc/bus/usb/drivers,
but the current one doesn't.

Why?  Because there are driver frameworks that are built on top of
USB (like usb-serial, usb-storage, "input") so that multiple modules
may need to get loaded.  And so, lacking an explicit representation
of the kernel's module structure, knowing the "usbcore" drivers that
were there just wouldn't let me check if the driver actually did what
I expected it to do.  (Load/init OK, and bind to the device.)

In the case of "input", I think the hope is that someone will donate
time to create an "input" hotplug system, that USB HID (and ADB?) will
be able to use; it'll cause "keybdev", "mousedev", "joydev", and so on
to get loaded.

But I don't think we should expect every driver framework to be that
generic.  A better global tool could really help robustness.  It'd
apply to big Linux servers, not just desktops ... the facilities needed
to dynamically reconfigure a big server (downtime is bad!) aren't that
different from those which prevent a desktop from needing to reboot
when you install a new device.  (Except that the desktop really needs
to assume there's normally nobody that understands sysadmin.)


> > David Hinds at one point spoke in favor of having more info passed
> > to the network hotplug events than just the interface name.  That's
> > critical for statically configured hardware (servers); dynamically
> > configured ones (pure DHCP clients, say) should not care.
> 
> Yes, I can tell you that if only the interface name is passed, it is
> going to frustrate some people who are used to having more information
> from PCMCIA.  It isn't entirely bad... at least, you can get the
> interface's hardware address, and use that to choose configurations.
> But I find it quite useful to know that eth0 is "the 3C575 card in
> PCMCIA socket 1", or vice versa.

This sort of issue can get sorted out as pcmcia_cs and hotplugging
start to ... "co-evolve"?  :-)

> -- Dave


_______________________________________________
Linux-hotplug-devel mailing list
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2001-01-11 18:04 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-09  4:59 hotplug TTD Morton, Andrew [WOLL:4009-M:EXCH]
2001-01-09  5:47 ` Miles Lane
2001-01-09  6:55 ` Miles Lane
2001-01-09  8:49 ` Adam J. Richter
2001-01-09 17:09 ` David Brownell
2001-01-09 17:38 ` David Brownell
2001-01-10  6:20 ` Grover, Andrew
2001-01-10  6:34 ` Grover, Andrew
2001-01-10 10:58 ` Andrew Morton
2001-01-10 10:58 ` Andrew Morton
2001-01-10 10:59 ` Andrew Morton
2001-01-11 16:10 ` David Brownell
2001-01-11 16:40 ` David Brownell
2001-01-11 17:18 ` David Hinds
2001-01-11 18:04 ` David Brownell [this message]
2001-01-12  0:09 ` Grover, Andrew
2001-01-12  0:33 ` Grover, Andrew
2001-01-12  1:13 ` Grover, Andrew
2001-01-12 12:51 ` Andrew Morton
2001-01-12 16:42 ` David Brownell
2001-01-12 17:37 ` David Brownell
2001-01-12 23:45 ` Keith Owens
2001-01-13 18:54 ` David Brownell
2001-01-13 23:25 ` Keith Owens
2001-02-03 23:37 ` Miles Lane
2001-02-03 23:48 ` Keith Owens

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-97923705626257@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).