.TH "reparent_to_init" 9 "reparent_to_init" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME reparent_to_init \- Reparent the calling kernel thread to the init task. .SH SYNOPSIS .B "void" reparent_to_init .BI "(" void ");" .SH ARGUMENTS .IP "void" 12 no arguments .SH "DESCRIPTION" If a kernel thread is launched as a result of a system call, or if it ever exits, it should generally reparent itself to init so that it is correctly cleaned up on exit. The various task state such as scheduling policy and priority may have been inherited fro a user process, so we reset them to sane values here. NOTE that \fBreparent_to_init\fP gives the caller full capabilities.