public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* include conventions /usr/include/linux/sys ?
@ 2000-11-22 20:45 LA Walsh
  2000-11-22 20:59 ` Arjan van de Ven
  2000-11-22 22:35 ` H. Peter Anvin
  0 siblings, 2 replies; 5+ messages in thread
From: LA Walsh @ 2000-11-22 20:45 UTC (permalink / raw)
  To: lkml

Linus has mentioned a desire to move kernel internal interfaces into
a separate kernel include directory.  In creating some code, I'm wondering
what the name of this should/will be.  Does it follow that convention
would point toward a linux/sys directory?
-l

--
L A Walsh                        | Trust Technology, Core Linux, SGI
law@sgi.com                      | Voice/Vmail: (650) 933-5338

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: include conventions /usr/include/linux/sys ?
  2000-11-22 20:45 include conventions /usr/include/linux/sys ? LA Walsh
@ 2000-11-22 20:59 ` Arjan van de Ven
  2000-11-22 22:35 ` H. Peter Anvin
  1 sibling, 0 replies; 5+ messages in thread
From: Arjan van de Ven @ 2000-11-22 20:59 UTC (permalink / raw)
  To: LA Walsh; +Cc: linux-kernel

In article <NBBBJGOOMDFADJDGDCPHOEKLCJAA.law@sgi.com> you wrote:
> Linus has mentioned a desire to move kernel internal interfaces into
> a separate kernel include directory.  In creating some code, I'm wondering
> what the name of this should/will be.  Does it follow that convention
> would point toward a linux/sys directory?

I would vote for

include/linux		-	 exported interfaces
include/kernel		-	 kernel internal interfaces
include/asm		- 	 kernel internal/archspecific interfaces

Greetings,
   Arjan van de Ven
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: include conventions /usr/include/linux/sys ?
  2000-11-22 20:45 include conventions /usr/include/linux/sys ? LA Walsh
  2000-11-22 20:59 ` Arjan van de Ven
@ 2000-11-22 22:35 ` H. Peter Anvin
  2000-11-23  1:14   ` Andi Kleen
  2000-11-23  7:41   ` Mitchell Blank Jr
  1 sibling, 2 replies; 5+ messages in thread
From: H. Peter Anvin @ 2000-11-22 22:35 UTC (permalink / raw)
  To: linux-kernel

Followup to:  <NBBBJGOOMDFADJDGDCPHOEKLCJAA.law@sgi.com>
By author:    "LA Walsh" <law@sgi.com>
In newsgroup: linux.dev.kernel
>
> Linus has mentioned a desire to move kernel internal interfaces into
> a separate kernel include directory.  In creating some code, I'm wondering
> what the name of this should/will be.  Does it follow that convention
> would point toward a linux/sys directory?
> 

I suggested include/kernel and include/arch with include/linux and
include/asm being reserved for the kernel interfaces (ioctl and their
structures mostly.)

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: include conventions /usr/include/linux/sys ?
  2000-11-22 22:35 ` H. Peter Anvin
@ 2000-11-23  1:14   ` Andi Kleen
  2000-11-23  7:41   ` Mitchell Blank Jr
  1 sibling, 0 replies; 5+ messages in thread
From: Andi Kleen @ 2000-11-23  1:14 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel

On Wed, Nov 22, 2000 at 02:35:43PM -0800, H. Peter Anvin wrote:
> Followup to:  <NBBBJGOOMDFADJDGDCPHOEKLCJAA.law@sgi.com>
> By author:    "LA Walsh" <law@sgi.com>
> In newsgroup: linux.dev.kernel
> >
> > Linus has mentioned a desire to move kernel internal interfaces into
> > a separate kernel include directory.  In creating some code, I'm wondering
> > what the name of this should/will be.  Does it follow that convention
> > would point toward a linux/sys directory?
> > 
> 
> I suggested include/kernel and include/arch with include/linux and
> include/asm being reserved for the kernel interfaces (ioctl and their
> structures mostly.)

It would also be useful to put *32 structures for 32->64bit conversion
in there (to prepare for a generic 32->64bit conversion layer in 2.5) 


-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: include conventions /usr/include/linux/sys ?
  2000-11-22 22:35 ` H. Peter Anvin
  2000-11-23  1:14   ` Andi Kleen
@ 2000-11-23  7:41   ` Mitchell Blank Jr
  1 sibling, 0 replies; 5+ messages in thread
From: Mitchell Blank Jr @ 2000-11-23  7:41 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel

H. Peter Anvin wrote:
> I suggested include/kernel and include/arch with include/linux and
> include/asm being reserved for the kernel interfaces (ioctl and their
> structures mostly.)

That sounds good.  One other refinement I would like to see is that
architecture specific but always present header files don't get used
directly in architecture-independant .c flies.  Some common examples of
this are <asm/io.h> and <asm/uaccess.h>  The problem is that often there
is some code that is identical between some or all of the archs.  Then
one of two things happen:
  * The code gets duplicated in many *.h files with all the bad things that
    comde duplication causes - especially since they're all under seperate
    maintainership
  * We have a big ugly conversion like what happened with 'asm/spinlock.h' ->
    'linux/spinlock.h'

If we only have arch-independant *.c files only include things out of
<kernel/*> (which may, of course, include things in <arch/*>) we can
avoid these conversions in the future and promote code reuse between the
architectures.

Also we should probably consider implementing a reasonalbe hierarchy to
the proposed <kernel/*.h> directory - for instance <kernel/bus/pci.h>.

-Mitch
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-11-23  8:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-22 20:45 include conventions /usr/include/linux/sys ? LA Walsh
2000-11-22 20:59 ` Arjan van de Ven
2000-11-22 22:35 ` H. Peter Anvin
2000-11-23  1:14   ` Andi Kleen
2000-11-23  7:41   ` Mitchell Blank Jr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox