Re: Problems compiling kernel modules

From: Alex Goddard
Date: Sat Aug 21 2004 - 16:19:19 EST


On Sat, 21 Aug 2004, Lei Yang wrote:

What about multi-file module?

Say test.c doesn't include stdio.h, while there is some other .c file which is to be compiled and linked into test.ko, include stdio?

Would that work?

TIA!
Lei

You can't use userspace headers in the kernel. That's why the kernel has its own set with things like printk(), etc, etc. What is it that you're trying to do and why does it need file i/o?

--
Alex Goddard
agoddard at purdue dot edu
-
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/