On Sat, Apr 16, 2005 at 10:38:19 +0300, Razvan DEACONESCU wrote: > > > On Fri, 15 Apr 2005, Adam Wynne wrote: > > > Once a kernel thread is created using kernel_thread(), how can it be killed? > > > > Thanks > > > > Hi, > > you should use kill_proc (thread_id, signal, flags); > for example kill_proc (tid, SIGTERM, 0) > > use the following link (he is asking the same thing): > http://www.ussg.iu.edu/hypermail/linux/kernel/0310.2/0317.html Provided that it requires to check for the signals manually in the thread, you can do it manually with a flag and wake_up() as well. It may even be easier. You have to use signals if you want to send them from userland though. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@xxxxxx>
Attachment:
signature.asc
Description: Digital signature