kernel programming starter
hi friends,
Iam new to Kernel Programming.
I just started by a basic example given in the book
My Kernel Version is 2.6.24.2 and OS is Federo Core 9
example program hello.c is
//////////////////////////////////////////////////////
#include <linux/module.h>
#include <linux/kernel.h>
int init_module(void)
{
printk("<1>Hello world 1.\n");
return 0;
}
void cleanup_module(void)
{
printk(KERN_ALERT "Goodbye world 1.\n");
}
--------------------------------------------------
makefile is
obj−m += hello.o
at command prompt i gave the command
make -C /usr/src/linux-`uname -r` SUBDIRS=$PWD modules
but the result is
make: Entering directory `/usr/src/linux−2.6.24.2
Building modules, stage 2.
MODPROBE 0 modules
make: Leaving directory `/usr/src/linux−2.6.24.2
its not creating the corresponding .ko files
plz help me where i have gone wrong