To begin with something, I wrote a small skeleton with some entry
points (open, close, ioctl, etc) and also included init_module()
and cleanup_module(). I included calls to printk() in these functions
for debugging purpose. I addition, I included the following version
definition (taken from another driver):
#include <linux/version.h>
char kernel_version[] = UTS_RELEASE;
I then compiled this module as follows:
gcc -Wall -c pl_loopback.c -o pl_loopback.o -D__LINUX__
-DLINUX -D__KERNEL__
Now, if I try to load the module with "insmod pl_loopback", I
obtain the following error message:
printk undefined
Failed to load module! The symbols from kernel 1.2.13 don't match 1.2.13
So, I presume that I forgot something...
Any idea....?
Thanks