I have worked with this program of inserting a module to LINUX Kernel.
/*hellomodule.c*/
#define MODULE
int init_module(voi d){
printk("<1>Hell o Module\n");
return 0;
}
void cleanup_module( void){
printk("<1>Good bye\n");
}
I compiled the program with command
root# gcc -c hellomodule.c
I got the ouput file as hellomodule.o
And i failed in using the command,
root# insmod ./hellomodule.o
It is showing an error,
The file is not in module format and No module formats.
Whether we have any specific directories to put this modules?
How can i successfully install a module to the kernel?
Im using REDHAT EL - 4
/*hellomodule.c*/
#define MODULE
int init_module(voi d){
printk("<1>Hell o Module\n");
return 0;
}
void cleanup_module( void){
printk("<1>Good bye\n");
}
I compiled the program with command
root# gcc -c hellomodule.c
I got the ouput file as hellomodule.o
And i failed in using the command,
root# insmod ./hellomodule.o
It is showing an error,
The file is not in module format and No module formats.
Whether we have any specific directories to put this modules?
How can i successfully install a module to the kernel?
Im using REDHAT EL - 4
Comment