public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Rob Landley <rob@landley.net>
Cc: Nick Bartos <spam99@2thebatcave.com>, linux-kernel@vger.kernel.org
Subject: Re: Using kernel headers that are not for the running kernel
Date: Sun, 20 Jun 2004 12:24:05 -0400	[thread overview]
Message-ID: <20040620162405.GA16038@havoc.gtf.org> (raw)
In-Reply-To: <200406190546.50166.rob@landley.net>

On Sat, Jun 19, 2004 at 05:46:50AM -0500, Rob Landley wrote:
> The linux-kernel maintainers apparently decided that C libraries using kernel 
> headers to actually interface with the kernel was a bad idea.  Apparently, 
> interfacing with the kernel from a C library is not a proper use for kernel 
> headers, or something.  (I tried to follow the logic in this discussion, but 
> never actually found any, despite repeated attempts.  It always seemed to 
> boil down to "can't be bothered", "userspace shouldn't use kernel headers and 
> this includes the C library", etc...)

No, the problem is that the only thing that needs to be shared are the
_ABI_ headers, which are unfortunately mixed in with kernel-internal
headers and definitions.  This leads to use of kernel-internal
definitions in userspace, which leads to breakage.  This also leads to
restrictions on changing -kernel-internal- headers, because some
userspace wanker is complaining.

Kernel-internal headers and definitions should absolutely never be used
in userspace.

H. Peter Anvin has suggested an include/abi which could be shared, and
this seem quite reasonable to me.  However, the monumental task of
separating kernel-internal definitions from ABI definitions still
remains.

	Jeff, really glad the linux-libc-headers guys started his effort




  reply	other threads:[~2004-06-20 16:24 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
2004-06-18  9:27 ` Jesper Juhl
2004-06-19 10:46 ` Rob Landley
2004-06-20 16:24   ` Jeff Garzik [this message]
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=20040620162405.GA16038@havoc.gtf.org \
    --to=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rob@landley.net \
    --cc=spam99@2thebatcave.com \
    /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