Linux module for causing a system hard lock-up

Michael Blizek michi1 at michaelblizek.twilightparadox.com
Thu Jun 9 00:46:58 EDT 2011


Hi!

I am not sure whether my version works on smp. If it does not, maybe try
something like this:

#include <linux/stop_machine.h>

int func(void *)
{
	while (1) {
	}
	return 0;
}

int init_module(void)
{
	stop_machine(func, 0, 0);
	return 0;
}

	-Michi
-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com




More information about the Kernelnewbies mailing list