2.6 Kernel Threads
Hi all,
can u tell how i can start/stop a kernel thread in 2.6.x series kernel???
Thanks in advance.
Quoted 1 line · linux
can u tell how i can start/stop a kernel thread in 2.6.x series kernel???
If you are talking about creating kernel threads from your own code, you probably want to have a look at include/linux/kthread.h
Signature · 1 line
Dag vijandelijk luchtschip de huismeester is dood
Quoted 2 lines · linux
Hi all,
can u tell how i can start/stop a kernel thread in 2.6.x series kernel???
Kernel threads are used to perform crusal operations in the backgorund and runs solely in kernel-space so I am not fully aware of why you would want to start and stop them ?.
Anyway you can spawn a new kernel thread using
int kernel_thread(int (*fn)(void *), void * arg, unisgned long flags).
Regards.
Lars Roland
Quoted 5 lines · linux
Hi all,
can u tell how i can start/stop a kernel thread in 2.6.x series kernel???Thanks in advance.
You send it a signal. There are several drivers that use kernel threads. You can see how they synchronize shut-down for module removal by using a semaphone and a signal.
Cheers,
Dick Johnson
Penguin : Linux version 2.6.11 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.