From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: Automatic download and installation of drivers.
Date: Mon, 29 Oct 2001 21:53:40 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-100439255624928@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-100319421829170@msgid-missing>
On Thu, Oct 18, 2001 at 01:19:47AM +0100, Stamatis Mitrofanis wrote:
> I agree that a C compiler is a nice thing to have, but no one must be
> forced to have it (say, end users). If it becomes a "base package",
> every computer must have it installed and then people will start using
> it when it's not necessary (huge mess). The best thing to do here is to
> install the right version of gcc on demand (just as we do for drivers).
And what version of gcc would you install? Different versions for
different vendor kernels and even releases :)
> Standardize _both_ as the "current kernel configuration"
> (/usr/src/linux/.config _and_ a proc fs entry) so that driver sources
> can freely use it. I'd go for the first one though, here's the rationale:
> Since we are going to allow third-party kernel drivers to be compiled
> for a kernel, we may as well grant them the right to do everything that
> a "normally" (in-kernel) distributed driver can do. A driver may depend
> on other drivers to compile/work and they will need to be downloaded,
> configured and installed as well. A driver must be allowed to set (its
> own, of course) entries in the kernel configuration file , modifying it
> for other third-party drivers to read. Thus it's better to use
> /usr/src/linux/.config .
The /proc .config argument has been answered by Linus. So you can't
guarantee that it will be available unless you apply a third party patch
to your kernel.
But I don't keep my kernels in /usr/src/linux, and neither do most
people. And vendor kernels include a number of different .config files,
all of them placed in a different file within the .src.rpm. Work with
the LSB if you want to push for this kind of standardization.
>
> >>in kernel apis,
> >>
> >That's not something new. APIs change all the time, everywhere, not
> >only in OSes. Programmers just need to use #if ... #endif and maybe
> >the driver should be marked as "suitable" or "tested" on some range
> >of kernel releases.
> >
> Couldn't the kernel's configuration file be useful in solving this
> problem? API authors could use it to describe the changes they made in
> the API.
No, the .config file is used to describe the options that the user wants
built for the kernel. It is not a language that can express API
changes.
How would you describe the fact that between kernels x and y, the struct
usb_serial_device changed the field "lock" from being a "struct
spinlock_t" to being a "struct semaphore"? Changes that that _have_ to
have code changes to the driver made. That's the main problem that you
are going to run into here.
> This script can very well be a hotplug agent supporting four ACTIONs. I
> posted a message about this a few days ago, but since I didn't put any
> Subject line no one must have read it. Here it is again:
Remember /sbin/hotplug runs as root. You do _not_ want to be doing any
of these actions as root :)
Good luck,
greg k-h
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2001-10-29 21:53 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-16 0:02 Automatic download and installation of drivers Stamatis Mitrofanis
2001-10-16 5:29 ` Greg KH
2001-10-16 7:35 ` David Brownell
2001-10-16 7:58 ` Tim Jansen
2001-10-16 11:38 ` Keith Owens
2001-10-16 16:52 ` Greg KH
2001-10-16 18:44 ` Tim Jansen
2001-10-16 18:58 ` Tim Jansen
2001-10-16 19:19 ` Greg KH
2001-10-17 2:01 ` David Brownell
2001-10-17 2:03 ` David Brownell
2001-10-17 18:47 ` Tim Jansen
2001-10-17 19:24 ` David Brownell
2001-10-17 23:31 ` Tim Jansen
2001-10-17 23:32 ` Greg KH
2001-10-18 0:07 ` Dmitri
2001-10-18 0:19 ` Stamatis Mitrofanis
2001-10-18 0:47 ` Tim Jansen
2001-10-18 2:17 ` Keith Owens
2001-10-18 2:35 ` Dmitri
2001-10-29 21:53 ` Greg KH [this message]
2001-10-30 8:26 ` Tim Jansen
2001-10-30 17:21 ` Greg KH
2001-10-30 21:24 ` Tim Jansen
2001-10-30 21:51 ` Dmitri
2001-10-31 12:36 ` Keith Owens
2001-10-31 20:49 ` Greg KH
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-100439255624928@msgid-missing \
--to=greg@kroah.com \
--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).