Re: kernel_thread question
From: Stefan Richter
Date: Wed Mar 18 2009 - 11:26:53 EST
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/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/