creating a simple module(device driver)
Iam getting an error while linking the following module to my kernel......
//module.c
#define MODULE
#include<linux/module.h>
#include<linux/kernel.h>
int init_module()
{
printk("<1> HEllo my boss\n");
return 0;
}
void cleanup_module()
{
printk("<1> good bye my boss");
}
i can able to compile success fully...
# gcc -c module.c
but when iam trying to insert this module....
# insmod ./module.o
Iam getting this erro..
your kernel is mismatched..
your kernel version is 2.4.0-20.this is compiled for
2.4.0 on linux 9.0...
even i tried on linux 7.0 here also iam getting same error..
your kernel is mismatched..
your kernel version is 2.....this is compiled for
2.4.0 on linux 7.0...
can any one help for this experts..
-------------
mahi
|