From: Greg KH <greg@kroah.com>
To: Dave Jones <davej@suse.de>
Cc: Patrick Mochel <mochel@osdl.org>, Paul Jakma <paulj@alphyra.ie>,
knobi@knobisoft.de, linux-kernel@vger.kernel.org
Subject: Re: Hardware Inventory [was: Re: ISA slot detection on PCI systems?]
Date: Mon, 7 Jan 2002 10:50:02 -0800 [thread overview]
Message-ID: <20020107185001.GK7378@kroah.com> (raw)
In-Reply-To: <Pine.LNX.4.33.0201070955480.867-100000@segfault.osdlab.org> <Pine.LNX.4.33.0201071908580.16327-100000@Appserv.suse.de>
In-Reply-To: <Pine.LNX.4.33.0201071908580.16327-100000@Appserv.suse.de>
On Mon, Jan 07, 2002 at 07:11:03PM +0100, Dave Jones wrote:
> On Mon, 7 Jan 2002, Patrick Mochel wrote:
>
> > One of the ideas that I've kicked around with some people here and the
> > ACPI guys is the notion of trigger device enumeration from userspace
> > completely.
> >
> > During the initramfs stage, a program (say devmgr) figures out what type
> > of system you have, where the PCI buses are, etc. It tells the kernel this
> > information, which then probes for existence, then loads drivers.
>
> Sounds remarkably like the work that Greg has been doing with hotplug
> support.
Yup :)
But I wanted to rely on the existing PCI and USB core code to do the
probing of the busses and devices, as it knows how to do this the best
right now. Whenever it finds a new device it calls out to /sbin/hotplug
with the device info. The userspace program at that location then loads
the proper driver for the device, if it knows about it. This is the
same code and process that runs when the kernel is up and running today.
No code duplication is a good thing :)
And the /sbin/hotplug program knows about _all_ devices that the
currently compiled kernel can handle due to the MODULE_DEVICE_TABLE tags
in the drivers.
See the linux-hotplug project's documentation for more info on this:
http://linux-hotplug.sf.net/
A paper and presentation about the linux-hotplug process:
http://www.kroah.com/linux/
dietHotplug, a _very_ tiny implementation of /sbin/hotplug which is was
created exactly for the initramfs stage:
http://www.kernel.org/pub/linux/utils/kernel/hotplug/diethotplug-0.3.tar.gz
thanks,
greg k-h
next prev parent reply other threads:[~2002-01-07 18:52 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-04 11:32 Hardware Inventory [was: Re: ISA slot detection on PCI systems?] Martin Knoblauch
2002-01-04 22:17 ` Dave Jones
2002-01-05 17:00 ` Paul Jakma
2002-01-05 17:14 ` Dave Jones
2002-01-07 18:05 ` Patrick Mochel
2002-01-07 18:11 ` Dave Jones
2002-01-07 18:50 ` Greg KH [this message]
2002-01-07 18:58 ` Greg KH
2002-01-07 18:58 ` Eric S. Raymond
2002-01-08 8:04 ` [kbuild-devel] " Giacomo Catenazzi
2002-01-08 18:36 ` Greg KH
2002-01-09 8:25 ` Giacomo Catenazzi
2002-01-07 18:58 ` Dave Jones
2002-01-07 19:06 ` Greg KH
2002-01-07 19:19 ` Dave Jones
2002-01-07 19:45 ` Alexander Viro
2002-01-08 14:00 ` Alan Cox
2002-01-08 14:00 ` Erik Andersen
2002-01-07 19:19 ` Patrick Mochel
2002-01-07 19:29 ` Greg KH
2002-01-07 20:36 ` David Brownell
2002-01-07 22:03 ` Greg KH
2002-01-07 22:28 ` David Brownell
2002-01-07 23:59 ` Greg KH
2002-01-08 8:36 ` Kevin Easton
2002-01-11 21:52 ` David Brownell
2002-01-07 23:25 ` Kai Germaschewski
2002-01-07 17:55 ` Patrick Mochel
2002-01-07 19:04 ` Richard Gooch
2002-01-07 19:26 ` Dave Jones
2002-01-07 19:41 ` Alexander Viro
2002-01-07 19:58 ` Paul Jakma
2002-01-07 19:33 ` Patrick Mochel
2002-01-07 20:16 ` Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2002-01-07 20:13 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=20020107185001.GK7378@kroah.com \
--to=greg@kroah.com \
--cc=davej@suse.de \
--cc=knobi@knobisoft.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.org \
--cc=paulj@alphyra.ie \
/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