Forum Moderators: bakedjake
.... which is closed now ... I am just posting this because the originator still had the problem (I assume)
Here is my experience,
the code
--------
#include <linux/module.h>
#include <linux/kernel.h>
int init_module(void)
{
printk("<1>Hello world 1.\n"[smilestopper]);
return 0;
}
void cleanup_module(void)
{
printk(KERN_ALERT "Goodbye world 1.\n"[smilestopper]);
}
the Makefile
------------
obj-m += hello-1.o
make command
------------
[root@localhost 2.6]# make -C /lib/modules/2.6.9-1.667/build SUBDIRS=$PWD modules
load module
-----------
[root@localhost 2.6]# /sbin/insmod ./hello-1.ko
hope this is helpful.