Eric W. Biederman bbda86e988 exit: Implement kthread_exit
The way the per task_struct exit_code is used by kernel threads is not
quite compatible how it is used by userspace applications.  The low
byte of the userspace exit_code value encodes the exit signal.  While
kthreads just use the value as an int holding ordinary kernel function
exit status like -EPERM.

Add kthread_exit to clearly separate the two kinds of uses.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2021-12-13 12:04:45 -06:00
..
2021-11-12 11:07:17 -08:00
2021-12-13 12:04:45 -06:00
2021-08-05 11:01:30 +01:00
2021-11-13 10:01:10 -08:00
2021-08-11 06:44:24 -04:00
2021-11-12 11:07:17 -08:00