hi..
     i am using debian. in my system i only installed kernel header of
particular kernel what i am using but then also i am getting error :
Segmentation fault for insmod i attached my hello world program please tell
where i am doing mistake.
regards,
amol
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("GPL");
static int hello_init(void)
{
    printk(KERN_ALERT "Hello, world\n");
        return 0;
	}
	static void hello_exit(void)
	{
	    printk(KERN_ALERT "Goodbye, cruel world\n");
	    }
	    module_init(hello_init);
	    module_exit(hello_exit);

Attachment: Makefile
Description: Binary data

Reply via email to