From: Fawad Lateef <fawadlateef@gmail.com>
To: Ottavio Campana <ottavio@campana.vi.it>
Cc: linux-kernel@vger.kernel.org
Subject: Re: example of kernel thread
Date: Fri, 10 Feb 2006 21:42:51 +0500 [thread overview]
Message-ID: <1e62d1370602100842k21c4c600h9404cfb034e0deb1@mail.gmail.com> (raw)
In-Reply-To: <43ECB713.4010908@campana.vi.it>
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
prev parent reply other threads:[~2006-02-10 16:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-10 15:53 Ottavio Campana
2006-02-10 16:42 ` Fawad Lateef [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1e62d1370602100842k21c4c600h9404cfb034e0deb1@mail.gmail.com \
--to=fawadlateef@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ottavio@campana.vi.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®