mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: Peter Staubach <staubach@redhat.com>
Cc: Horst von Brand <vonbrand@inf.utfsm.cl>,
	Marc Aurele La France <tsi@ualberta.ca>,
	linux-kernel@vger.kernel.org
Subject: Re: Kernel header policy
Date: Tue, 12 Jul 2005 15:36:34 +0200	[thread overview]
Message-ID: <1121175394.3171.28.camel@laptopd505.fenrus.org> (raw)
In-Reply-To: <42D3C51D.3020703@redhat.com>

On Tue, 2005-07-12 at 09:26 -0400, Peter Staubach wrote:
> Horst von Brand wrote:
> 
> >>I am contacting you to express my concern over a growing trend in kernel
> >>development.  I am specifically referring to changes being made to kernel
> >>headers that break compatibility at the userland level, where __KERNEL__
> >>isn't #define'd.
> >>    
> >>
> >
> >The policy with respect to kernel headers is /very/ simple:
> >
> >  T H E Y   A R E   N E V E R   U S E D   F R O M   U S E R L A N D.
> >
> >This general policy makes all your points (trivially) moot.
> >
> 
> I must admit a little confusion here.  Clearly, kernel header files are
> used at the user level.  The kernel and user level applications must share
> definitions for a great many things.

you are incorrect or rather imprecise here. Userspace needs headers
which define the kernel<->Userspace ABI. That is not the same as "the"
kernel headers.

> 
> Perhaps more precisely, the rule is that kernel header files should not be
> #include'd directly from user level applications, but may be #include'd
> indirectly through other header files as appropriate?

actually the rule in linux is that you should use cleaned up ABI
defining headers. There's several sets to chose from even. Generally
those sets have their origins in the kernel but are stripped down to
just the userspace-abi elements. 
(eg no kernel specific things like spinlocks or inlines or ..)



  reply	other threads:[~2005-07-12 13:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-11 21:37 Marc Aurele La France
2005-07-11 21:56 ` Stephen Frost
2005-07-11 22:44 ` Tomasz Torcz
2005-07-12  2:06 ` Horst von Brand
2005-07-12 13:26   ` Peter Staubach
2005-07-12 13:36     ` Arjan van de Ven [this message]
2005-07-12 16:30       ` Alistair John Strachan
2005-07-12 18:38     ` Jim Nance
2005-07-12 19:08       ` Eric Piel
2005-07-12 20:18         ` Tom Rini
2005-07-12  3:07 ` 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=1121175394.3171.28.camel@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=staubach@redhat.com \
    --cc=tsi@ualberta.ca \
    --cc=vonbrand@inf.utfsm.cl \
    /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

all inboxes | Powered by JetHome®