• E
    exit: Implement kthread_exit · bbda86e9
    Eric W. Biederman 提交于
    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: N"Eric W. Biederman" <ebiederm@xmission.com>
    bbda86e9
check.c 82.2 KB