> This is how the kernel thread is stopped.>> if(info->pid)> {> (void)kill_proc(info->pid, SIGTERM, 1);> wait_for_completion(&info->quit);> }>

I actually would prefer to do it with the new kernel thread API.So, to create the thread: kthread_createbind it to a cpu: kthread_bindstop it: kthread_stop

Now, if I call kthread_stop() in module unload time, does that coderun in user process context just like system calls do? That isimportant, because if it cannot sleep, it would deadlock.-To unsubscribe from this list: send the line "unsubscribe linux-kernel" inthe body of a message to majordomo@vger.kernel.orgMore majordomo info at http://vger.kernel.org/majordomo-info.htmlPlease read the FAQ at http://www.tux.org/lkml/