Problems with kernel headers
Hi,
I have a problem writing my first module for linux. I use ubuntu 6.10. The module code starts with:
#define MODULE
#include <linux/module.h>
unfortunately in /usr/include/linux there is no such file...
Ok I say, still i have /usr/src/linux-headers-2.6.17-11/include/linux which holds all headers that are in /usr/include/linux/ and more (including module.h)
So I linked /usr/src/linux-headers-2.6.17-11/include/linux directory to /user/local/incude/linux (ln -s).
but...
Whan I compile I get about 100 errors being in these hearers... seems I'm doing something totally wrong way.
Thanks for feedback
Łukasz Z
|