|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/share/doc/netdump-0.7.14/ |
Upload File : |
/*
* As an alternative to using Alt-Sysrq-c to crash 2.4-based kernels,
* this module may be built like so:
*
* # gcc -DKERNEL -DMODULE -I/lib/modules/$(uname -r)/build/include -c crash.c
*
* and then installed for an instant oops with:
*
* # insmod ./crash.o
*/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/init.h>
int __init crash_init(void)
{
printk ("crashing kernel...\n");
*((char *) 0) = 0;
return 0;
}
module_init(crash_init);