2005-05-19 15:03:01

by linux

[permalink] [raw]
Subject: 2.4 Kernel thread start/stop

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.



2005-05-19 15:18:55

by linux-os (Dick Johnson)

[permalink] [raw]
Subject: Re: 2.4 Kernel thread start/stop

On Thu, 19 May 2005, linux wrote:

> 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.