* 2.6 Kernel Threads
@ 2005-05-16 13:23 linux
2005-05-16 13:40 ` Sean Neakums
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: linux @ 2005-05-16 13:23 UTC (permalink / raw)
To: lkml
Hi all,
can u tell how i can start/stop a kernel thread in 2.6.x series kernel???
Thanks in advance.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: 2.6 Kernel Threads
2005-05-16 13:23 2.6 Kernel Threads linux
@ 2005-05-16 13:40 ` Sean Neakums
2005-05-16 13:45 ` Lars Roland
2005-05-16 13:58 ` Richard B. Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Sean Neakums @ 2005-05-16 13:40 UTC (permalink / raw)
To: linux; +Cc: lkml
"linux" <kernel@wired-net.gr> writes:
> 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
--
Dag vijandelijk luchtschip de huismeester is dood
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6 Kernel Threads
2005-05-16 13:23 2.6 Kernel Threads linux
2005-05-16 13:40 ` Sean Neakums
@ 2005-05-16 13:45 ` Lars Roland
2005-05-16 13:58 ` Richard B. Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Lars Roland @ 2005-05-16 13:45 UTC (permalink / raw)
To: linux; +Cc: lkml
On 5/16/05, linux <kernel@wired-net.gr> wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6 Kernel Threads
2005-05-16 13:23 2.6 Kernel Threads linux
2005-05-16 13:40 ` Sean Neakums
2005-05-16 13:45 ` Lars Roland
@ 2005-05-16 13:58 ` Richard B. Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Richard B. Johnson @ 2005-05-16 13:58 UTC (permalink / raw)
To: linux; +Cc: lkml
On Mon, 16 May 2005, linux wrote:
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-16 13:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-16 13:23 2.6 Kernel Threads linux
2005-05-16 13:40 ` Sean Neakums
2005-05-16 13:45 ` Lars Roland
2005-05-16 13:58 ` Richard B. Johnson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.