hi,
I am a newbie to writing modules.I wrote a simple module test.c
#define MODULE
#include <linux/version.h>
#include<linux/module.h>
int init_module(void)
{
printk("<1>Hai\n");
return 0;
}
void cleanup_module(void)
{
printk("<1>bye");
}
After this
I ran gcc -c test.c
No problems here I got test.o
then
insmod test.o
Here the problem started
it printed
<1>Hai
<1> should not be printed know?
then when I ran
rmmod test.o I got the message
rmmod:test.o module not loaded
but if I try insmod test.o
It says
insmod:module test already exists
Where is the problem?
thanx,
hari
----------------------------------------------
An alpha version of a web based tool to manage
your subscription with this mailing list is at
http://lists.linux-india.org/cgi-bin/mj_wwwusr