Well after a while of reading,reading and some more reading i thought id share how-to creat a Loadable Kernel Module.

Lets begin with creating a simple C program.
%vi hello.c

#include <linux/module.h>

#if defined(CONFIG_SMP)
#define __SMP__
#endif

#if defined (CONFIG_MODVERSIONS)
#define MODVERSIONS
#include <linux/modversions.h>
#endif

#include <linux/kernel.h>

int int_module (void)
{