public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: davidsen@tmr.com (bill davidsen)
To: linux-kernel@vger.kernel.org
Subject: Re: 2.6.0-test11: i2c-dev.h for userspace
Date: 14 Dec 2003 01:57:44 GMT	[thread overview]
Message-ID: <brgg2n$i2v$1@gatekeeper.tmr.com> (raw)
In-Reply-To: 20031212190105.GB3038@kroah.com

In article <20031212190105.GB3038@kroah.com>, Greg KH  <greg@kroah.com> wrote:

| They aren't.  The rule is:
| 	DO NOT INCLUDE KERNEL HEADER FILES IN USERSPACE TOOLS.
| Please read the archives for lkml on why this is true.
| 
| Yeah, we do need a way to have "sanitized" kernel headers so that
| userspace can include them, but for now, use what your libc provides.
| 
| So please use the headers that are present in the lmsensors project, or
| copy those headers into your project.
| 
| I don't want this thread to drag out into the usual argument for or
| against this issue, please.

I think you are pissing into the wind on this one, as long as people
have the choice between a kernel header which will always have the right
definitions and trying to find a header elsewhere which will work until
the kernel changes again, people are going to use kernel headers.

Not that I disagree with the intent at all, it's better software
engineering to do it that way. Your desired practice is totally correct
and a better way to do it.

However, in the real world, it might be a lot better to have an ABI
header directory, and to have both the user and kernel programs get
unformation from that. The kernel could do its thing and still be in
step with the user program (modulo recompilation when kernel development
is taking place). Packages and libraries could be compiled using the ABI
includes and be certain they would work on new kernels. And developers
would have a clear indication that if they changed things in the ABI
includes they would mess up compiled user programs. That's not a bad
thing either.

On a development kernel finding other headers is more work and less
reliable, human nature doesn't work well that way.
-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.

      parent reply	other threads:[~2003-12-14  2:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-12 14:56 2.6.0-test11: i2c-dev.h for userspace Johannes Stezenbach
2003-12-12 17:56 ` Greg KH
2003-12-12 18:53   ` Johannes Stezenbach
2003-12-12 19:01     ` Greg KH
2003-12-12 19:21       ` Johannes Stezenbach
2003-12-12 19:45         ` Greg KH
2003-12-14  1:57       ` bill davidsen [this message]

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='brgg2n$i2v$1@gatekeeper.tmr.com' \
    --to=davidsen@tmr.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