Query: reparent_to_kthreadd
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
REPARENT_TO_KTHREADD(9) Driver Basics REPARENT_TO_KTHREADD(9)NAMEreparent_to_kthreadd - Reparent the calling kernel thread to kthreaddSYNOPSISvoid reparent_to_kthreadd(void);ARGUMENTSvoid no argumentsDESCRIPTIONIf a kernel thread is launched as a result of a system call, or if it ever exits, it should generally reparent itself to kthreadd so it isn't in the way of other processes and is correctly cleaned up on exit. The various task state such as scheduling policy and priority may have been inherited from a user process, so we reset them to sane values here. NOTE that reparent_to_kthreadd gives the caller full capabilities.COPYRIGHTKernel Hackers Manual 2.6. July 2010 REPARENT_TO_KTHREADD(9)