From: Krzysztof Halasa <khc@pm.waw.pl>
To: davids@webmaster.com
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: Using kernel headers that are not for the running kernel
Date: Fri, 18 Jun 2004 15:25:37 +0200 [thread overview]
Message-ID: <m3brjhdmlq.fsf@defiant.pm.waw.pl> (raw)
In-Reply-To: <MDEHLPKNGKAHNMBLJOLKMECEMLAA.davids@webmaster.com> (David Schwartz's message of "Thu, 17 Jun 2004 17:04:30 -0700")
"David Schwartz" <davids@webmaster.com> writes:
> It creates a stable system. Things become much less stable if you mess
> around with all of userspace just because the kernel changes. There is no
> reason user space should be in sync with the running kernel. User space
> should be stable.
Kernel headers should and in fact are stable WRT common userspace
interface. If they aren't, you're forced to recompile the userspace
anyway.
BTW: it's ok to compile things like glibc against new kernel headers
(say, 2.6.x) and use the resulting library with older kernels (as old
as 2.2 I think). In fact it's the preferred way to compile glibc.
You can disable support for older kernels with glibc/configure
--enable-kernel=VERSION --enable-oldest-abi=ABI.
> The kernel-user interface is supposed to stay stable, so you shouldn't need
> to make significant user space changes when you upgrade the kernel. Only
> specific applications that need to get specific new features that require
> changes to the kernel-user interface need to change.
Sure. Examples: ioctls for configuring the system.
> It has been a very long
> time since compiling user space programs against the header files for the
> kernel you happened to be running was considered good practice.
I think at this point we have to create include/abi (or api) as a part
of the kernel. The mess with distributions-provided "glibc kernel
headers" must at last be cleaned.
Should no one have time for doing that I'm going to start.
--
Krzysztof Halasa, B*FH
next prev parent reply other threads:[~2004-06-18 17:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-17 23:28 Using kernel headers that are not for the running kernel Nick Bartos
2004-06-18 0:04 ` David Schwartz
2004-06-18 13:25 ` Krzysztof Halasa [this message]
2004-06-18 9:27 ` Jesper Juhl
2004-06-19 10:46 ` Rob Landley
2004-06-20 16:24 ` Jeff Garzik
2004-06-21 0:37 ` Rob Landley
2004-06-21 15:29 ` Randy.Dunlap
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=m3brjhdmlq.fsf@defiant.pm.waw.pl \
--to=khc@pm.waw.pl \
--cc=davids@webmaster.com \
--cc=linux-kernel@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