From: Greg KH <greg@kroah.com>
To: "Adam J. Richter" <adam@yggdrasil.com>
Cc: rusty@rustcorp.com.au, kai@tp1.ruhr-uni-bochum.de,
linux-kernel@vger.kernel.org, perex@suse.cz
Subject: Re: [PATCH] Module alias and table support
Date: Mon, 25 Nov 2002 19:49:25 -0800 [thread overview]
Message-ID: <20021126034924.GC27006@kroah.com> (raw)
In-Reply-To: <200211260326.TAA22022@adam.yggdrasil.com>
On Mon, Nov 25, 2002 at 07:26:27PM -0800, Adam J. Richter wrote:
> I really like Rusty's "module aliases" idea.
>
> Its full potential has not been recognized in this discussion.
>
> If we're going to use strings for device ID matching,
> then we can consolidate all of the xxx_device_id types into one:
>
>
> struct device_id {
> const char *pattern;
> /* In practice, many drivers want scalar driver data, many
> want an integer, and a few could benefit from having both.
> Alternatively, we could have no extra match data at all
> and make drivers declare a parallel table, for it, but
> most drivers only have a few ID's to match, so the cost of
> providing these fields is small. */
> int match_scalar;
> void *match_ptr;
> };
Nice idea, but how are you going to get the pre-processor to generate a
string with the proper pattern, based on a bunch of flags and integers?
(not to say it can't be done, just tricky stuff...)
> There would be a long period of backward compatability wrappers
> and porting to use the interface directly, but eventually we would have:
>
> - only one kind of module device table for generating module aliases,
Very nice goal.
> - device ID matching consolidated into drivers/base,
Sorry, can't be fully done. A number of drivers really want to poke
around at the device before they say they really claim the device. So
we still need to call into them somehow.
> - No need for user level programs to query devices to generate
> hotplug information (goodbye pcimodules, usbmodules,
> isapnpmodules),
I think these can almost already go away now, with the info we have in
sysfs.
> - Zero changes to user or kernel needed to add a new hotplug
> bus type (just drop the driver modules in /lib/modules/nnn/
> and run depmod).
That is also a very nice goal.
Again, nice idea, have any idea how the code would look?
thanks,
greg k-h
next prev parent reply other threads:[~2002-11-26 3:49 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-26 3:26 [PATCH] Module alias and table support Adam J. Richter
2002-11-26 3:49 ` Greg KH [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-11-28 0:22 Adam J. Richter
2002-11-28 1:48 ` David Brownell
2002-11-28 4:45 ` Keith Owens
2002-11-27 20:54 Adam J. Richter
2002-11-27 21:53 ` David Brownell
[not found] ` <20021127142006.A24246@adam.yggdrasil.com>
2002-11-27 22:59 ` David Brownell
2002-11-28 23:39 ` Rusty Russell
2002-11-28 3:14 ` Rusty Russell
2002-11-28 6:44 ` David Brownell
2002-11-28 22:01 ` David Brownell
2002-11-29 3:26 ` Rusty Russell
2002-11-29 19:56 ` Gerd Knorr
2002-11-29 1:28 ` Rusty Russell
2002-11-29 3:40 ` Greg KH
2002-11-27 6:25 David Brownell
2002-11-26 4:52 Adam J. Richter
2002-11-14 1:19 Rusty Russell
2002-11-20 8:23 ` Greg KH
2002-11-24 23:34 ` Rusty Russell
2002-11-25 21:36 ` Greg KH
2002-11-25 23:42 ` Rusty Russell
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=20021126034924.GC27006@kroah.com \
--to=greg@kroah.com \
--cc=adam@yggdrasil.com \
--cc=kai@tp1.ruhr-uni-bochum.de \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@suse.cz \
--cc=rusty@rustcorp.com.au \
/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