Skip to contentSkip to conversation

2.4 Kernel thread start/stop

DISCUSSION linux 2 participants 2 messages May 19, 2005

lore
Share & tools
lore

linux

author
#0 lore raw

Hi all,
i am starting from inside a module a kernel thread*,but in some time later
i
want to remove that module and stop the thread.
What is the process while unloading a module to release a kernel thread in 2.4.x kernel series.?????

Thanks in advance.

#1 lore raw
Quoted 8 lines · linux

Hi all,
i am starting from inside a module a kernel thread*,but in some time later i
want to remove that module and stop the thread.
What is the process while unloading a module to release a kernel thread in 2.4.x kernel series.?????

Thanks in advance.

Look at code that uses kernel threads. You send the task a signal and synchronize its exit with a semaphore.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.11.9 on an i686 machine (5537.79 BogoMips).
Notice : All mail here is now cached for review by Dictator Bush.
98.36% of all statistics are fiction.