From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: hotplug TTD
Date: Thu, 11 Jan 2001 16:40:44 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-97923166407744@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-97901650309422@msgid-missing>
> From: Andrew Morton <andrewm@uow.edu.au>
> Sent: Wednesday, January 10, 2001 2:58 AM
>
> David Brownell wrote:
> >
> > Second, there are various types of related functionality to be
> > developed. Addressing the "can't hotplug during boot" issue
> > (something kudzu-like to scan /proc/bus/{usb,pci}/*/* and create
> > hotplug events). Some sort of generic analogue to "cardctl eject"
> > would be good. And as Miles noted, "pcmcia_cs" is a degenerate
> > case of (generic) hotplug ...
>
> mm.. For PCI isn't it simply a matter of parsing /proc/bus/pci/*/*
> (or lspci output) to determine all the devices, then synthesising
> hotplug events for them?
Yes.
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.
> Now, there are a number of bells-n-whistles which could be added
> here. For example, people get irritated when they put their network
> cards into different slots and eth0 and eth1 get swapped around. We
> could fix this with some constraints, or a manual override before
> the automatic hotplug synthesis.
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.
It's a generic problem with the notion of automagically assigning
"user meaningful names" to hardware. Happens all the time when
USB devices show up ... two card readers, two cameras, etc have
exactly analagous problems. And it's not a problem "devfs" is
able to handle, near as I can tell.
> This is just one requirement - there are surely many others. 'fraid
> I haven't started to get my head around it yet.
Me either. Hence my "..." above ... ;-)
> > There's also device/driver specific initialization that we should
> > understand better. We know how to ensure that a USB controller
> > (on any PCI bus) is cleanly initted. I don't think we know how
> > to do that for a disk drive (start with SCSI and generalize) or
> > printer.
>
> err, yes. Plus if you run `/sbin/hotplug pci' five times
> back-to-back for five devices, you'll cause a great storm
> of initialisation activity, concurrent execution of
> modprobe and all sorts of things. Kernels will explode,
> I promise :)
Exploding penguin-shaped TV set-top boxes ... the holy grail
of kernel development? Clearly a sign that we need Python
developers involved ... ;-)
- Dave
_______________________________________________
Linux-hotplug-devel mailing list
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2001-01-11 16:40 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 [this message]
2001-01-11 17:18 ` David Hinds
2001-01-11 18:04 ` David Brownell
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-97923166407744@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).