Re: Portable binary drivers

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 7 Dec 1999 19:29:24 +0000 (GMT)


> So how should the header files for an ioctl interface to a driver be
> handled then? It seems like a waste of energy to have two keep one
> file for userspace use and one for kernel use, especially since the
> two have to be kept in sync.

You either keep two files, or you carefully set up that file so that it
has ifdef __KERNEL__ wrappers and can be used.

The whole point of seperating glibc/kernel includes is that glibc presents
a platform that is not neccessarily what the kernel provides. It isolates
apps from kernel changes.

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