[uClibc]header files
Erik Andersen
andersen at codepoet.org
Wed Jul 10 05:37:25 UTC 2002
On Wed Jul 10, 2002 at 03:27:56PM +1000, Brendan J Simon wrote:
> What about creating modules that are effectively part of the kernel ?
> We have a module with the following include files. Do you still
> recommend that we copy all these to the application source ??
>
> #include <linux/kernel.h>
> #include <linux/module.h>
> #include <linux/types.h>
> #include <linux/fs.h>
> #include <linux/time.h>
> #include <linux/list.h>
> #include <linux/skbuff.h>
> #include <asm/immap_8260.h>
> #include <asm/cpm_8260.h>
> #include <asm/delay.h>
>
If you are compiling up kernel modules, then no, you are correct
you do not need to copy the headers. But you must also not
include any C library headers. Kernel and user space headers
must not be mixed togther,
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list