Segmentation fault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux