I was trying to compile a program in ubuntu linux, but i wasnt able to find module.h in /usr/include/linux/
Please help me
************************************************** ********
compilation
************************************************** ********
gcc -c hello.c
hello.c:2:26: error: linux/module.h: No such file or directory
************************************************** ****
source
************************************************** ****
Code:
#define MODULE
#include <linux/module.h>
int init_module (void) /* Loads a module in the kernel */
{
printk("Hello kernel n");
return 0;
}
void cleanup_module(void) /* Removes module from kernel */
{
printk("GoodBye Kerneln");
}
************************************************** *******
Thx in advance