lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 18 Mar 2009 16:25:19 +0100
From:	Stefan Richter <stefanr@...6.in-berlin.de>
To:	Viral Mehta <viral.mehta@...fochips.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: kernel_thread question

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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ