[lkml]   [2001]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: __KERNEL__ removal
From (Kai Henningsen) said:


> ... but if we are looking for a clean solution to types and constants that
> are needed to communicate between kernel and user space, IMO the thing to
> do is to define these in some sort of generic format, and have a tool to
> generate actual headers from that according to whatever kernel, libc or
> whoever wants to see. Possibly more than one tool as requirements differ.

Much easier, plain C, no special tools:


where .../glibc/xyz.h contains the shared parts, and the others feel
free to include that as needed.

The real problem is that the interfaces _do_ change, as new syscalls,
ioctls, and constants show up (so "one set of .h for userland, cast in
stone for all eternity" won't _ever_ do), and that parts of the userland
are tightly bound to the kernel, and _need_ inside knowledge (strace, the
tools for manipulating modules, ...). Plus glibc and userland also
Horst von Brand
Casilla 9G, Vin~a del Mar, Chile +56 32 672616
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.065 / U:0.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site