Re: 2.6.18 Headers - Long

From: Adrian Bunk
Date: Sat Jul 15 2006 - 17:46:09 EST


On Sat, Jul 15, 2006 at 05:09:28PM -0400, Albert Cahalan wrote:
> David Woodhouse writes:
>
> >Kernel headers are _not_ a library of random crap for userspace to use.
>
> The attraction is that the kernel abstractions are very nice.
> Much of the POSIX API sucks ass. The kernel stuff is NOT crap.
>
> Here we have a full-featured set of atomic ops, byte swapping
> with readable names and a distinction for pointers, nice macros
> for efficient data structure manipulation...
>...

These are _kernel_ headers.

Sure, applications are abusing the kernel headers as userspace library.

But this is wrong, that's not what they are designed for.
Look at the code MySQL uses for including atomic.h and you understand
what I'm saying.

If stuff from the headers is generally considered useful for userspace,
someone should simply start a new project containing the small subset of
the headers containing such stuff cleaned up for userspace.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

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