Re: simple oops message

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

 



On Tue, Dec 21, 2004 at 10:35:02AM -0800, Alaios wrote:
> Hi i need a small module that will cause an oops
> message and afterwards the kernel will crash..\
> any suggestion?

Off the top of my head:

------------------

#include <linux/init.h>
#include <linux/module.h>

static int __init crash_start(void)
{
	BUG();
	return -EFAULT;
}

module_init(crash_start);
MODULE_LICENSE("GPL");

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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