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


_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to