From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Viral Mehta <viral.mehta@einfochips.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernel_thread question
Date: Wed, 18 Mar 2009 16:25:19 +0100 [thread overview]
Message-ID: <49C1125F.3030504@s5r6.in-berlin.de> (raw)
In-Reply-To: <49C0DE95.3060402@einfochips.com>
Viral Mehta wrote:
> int my_thread(void*)
> {
> if(printk("blah"))
> return 5; //WHERE THE HELL THIS VALUE GOES !! ?? !! HOW CAN I
> SEE ITS RETURN VALUE ???
The return value is passed over to kthread_stop(). If you don't use
kthread_stop(), the return value of threadfn does not matter.
http://lxr.linux.no/linux+v2.6.28/kernel/kthread.c#L187
--
Stefan Richter
-=====-==--= --== =--=-
http://arcgraph.de/sr/
prev parent reply other threads:[~2009-03-18 15:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-18 11:44 Viral Mehta
2009-03-18 15:25 ` Stefan Richter [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=49C1125F.3030504@s5r6.in-berlin.de \
--to=stefanr@s5r6.in-berlin.de \
--cc=linux-kernel@vger.kernel.org \
--cc=viral.mehta@einfochips.com \
/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®