From: Dave Jones <davej@suse.de>
To: Patrick Mochel <mochel@osdl.org>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: Defining new section for bus driver init
Date: Tue, 15 Jan 2002 02:55:30 +0000 [thread overview]
Message-ID: <20020115025530.A11314@suse.de> (raw)
> Attached is a patch that creates a new section for device subsystem init
> calls. With it, the root bus init calls are handled just like init calls
> - the section consists of a table of function pointers.
> device_driver_init() iterates over that table and calls each one.
> (device_driver_init() currently happens just before that pci_init() call
> above).
> What do people think about the concept?
Well, it chops out a load of ugly ifdefs, and makes adding support
for a new bus less intrusive than it currently is. I quite like it.
> I will warn that the name is kinda clumsy, but it's the best that I could
> come up with (I wasted my creativity for the day on thinking about
> Penelope). I used "subsystem" because I have alterior motives.
I think you hit the nail on the head with the subject line.
struct BusDriver also conjures up amusing[*] imagery.
One thing I'm wondering about though. Is it possible for a new
bus to be added after boot ? Docking stations etc show up as
children on the root PCI bus, so that shouldn't be an issue.
Ah! hotplug PCI USB controller ?
Dave.
[*] I'm easily amused.
--
Dave Jones. http://www.codemonkey.org.uk
SuSE Labs.
next reply other threads:[~2002-01-15 2:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-15 2:55 Dave Jones [this message]
2002-01-15 17:50 ` Defining new section for bus driver init Patrick Mochel
[not found] <20020115050512.GA24580@kroah.com>
2002-01-15 17:53 ` Patrick Mochel
2002-01-15 18:07 ` Dave Jones
2002-01-15 19:43 ` Patrick Mochel
-- strict thread matches above, loose matches on Subject: below --
2002-01-15 1:47 Patrick Mochel
2002-01-15 10:00 ` Russell King
2002-01-15 18:02 ` Patrick Mochel
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=20020115025530.A11314@suse.de \
--to=davej@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.