lkml.org 
[lkml]   [2006]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: example of kernel thread
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-10 17:45    [W:0.464 / U:1.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site