* example of kernel thread
@ 2006-02-10 15:53 Ottavio Campana
2006-02-10 16:42 ` Fawad Lateef
0 siblings, 1 reply; 2+ messages in thread
From: Ottavio Campana @ 2006-02-10 15:53 UTC (permalink / raw)
To: linux-kernel
I'm writing a little driver and I need to run a thread to poll data.
I've googled a bit to find an example, but I only found this
http://www.scs.ch/~frey/linux/kernelthreads.html
but it is for 2.4, while I need it for 2.6
Do you know any example and/or tutorial for kernel threads?
Thank you.
PS: can you please CC me because I didn't subscribe the list?
--
Non c'è più forza nella normalità, c'è solo monotonia.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: example of kernel thread
2006-02-10 15:53 example of kernel thread Ottavio Campana
@ 2006-02-10 16:42 ` Fawad Lateef
0 siblings, 0 replies; 2+ messages in thread
From: Fawad Lateef @ 2006-02-10 16:42 UTC (permalink / raw)
To: Ottavio Campana; +Cc: linux-kernel
On 2/10/06, Ottavio Campana <ottavio@campana.vi.it> wrote:
> I'm writing a little driver and I need to run a thread to poll data.
>
> I've googled a bit to find an example, but I only found this
> http://www.scs.ch/~frey/linux/kernelthreads.html
> but it is for 2.4, while I need it for 2.6
>
> Do you know any example and/or tutorial for kernel threads?
>
You can get help from include/linux/kthread.h (its well commented) and
can also take a look at drivers/md/md.c (the md_thread function and
hows kernel_thread is used) !
--
Fawad Lateef
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-02-10 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-10 15:53 example of kernel thread Ottavio Campana
2006-02-10 16:42 ` Fawad Lateef
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox