This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [RFC] Splitting kernel headers and deprecating __KERNEL__
- From: David Howells <dhowells at redhat dot com>
- To: Matthew Wilcox <matthew at wil dot cx>
- Cc: Alexandre Oliva <aoliva at redhat dot com>, torvalds at osdl dot org, hch at infradead dot org, dwmw2 at infradead dot org, linux-kernel at vger dot kernel dot org, libc-alpha at sources dot redhat dot com
- Date: Fri, 26 Nov 2004 11:58:27 +0000
- Subject: Re: [RFC] Splitting kernel headers and deprecating __KERNEL__
- References: <20041125210137.GD2849@parcelfarce.linux.theplanet.co.uk> <19865.1101395592@redhat.com> <orvfbtzt7t.fsf@livre.redhat.lsd.ic.unicamp.br>
> I'm not particularly stuck on the <user/> namespace. We could invent
> a better name. How about <kern/> and <arch/> to replace <linux/>
> and <asm/>? Obviously keeping linux/ and asm/ symlinks for backwards
> compatibility.
I'd rather not change linux and asm within the kernel itself. We'd have to
patch pretty much every file and move all the include files around. That's a
lot of patch.
How about calling the interface headers "kapi*/" instead of "user*/". In case
you haven't guessed, "kapi" would be short for "kernel-api".
Then we'd have in the kernel:
NEW DIRECTORY DIRECTORY SHADOWED
============= ==================
include/kapi/ include/linux/
include/kapi-*/ include/asm-*/
include/kapi-rxrpc/ include/rxrpc/
include/kapi-net/ include/net/
And in userspace:
SOURCE INSTALLED AS
====================== ============
include/kapi/ /usr/include/kapi/
include/kapi-i386/ /usr/include/kapi-i386/
include/kapi-generic/ /usr/include/kapi-generic/
/usr/include/linux -> kapi
/usr/include/asm -> kapi-i386
/usr/include/asm-generic -> kapi-generic (?)
David