1REPARENT_TO_KTHREADD(9)          Driver Basics         REPARENT_TO_KTHREADD(9)
2
3
4

NAME

6       reparent_to_kthreadd - Reparent the calling kernel thread to kthreadd
7

SYNOPSIS

9       void reparent_to_kthreadd(void);
10

ARGUMENTS

12       void
13           no arguments
14

DESCRIPTION

16       If a kernel thread is launched as a result of a system call, or if it
17       ever exits, it should generally reparent itself to kthreadd so it isnĀ“t
18       in the way of other processes and is correctly cleaned up on exit.
19
20       The various task state such as scheduling policy and priority may have
21       been inherited from a user process, so we reset them to sane values
22       here.
23
24       NOTE that reparent_to_kthreadd gives the caller full capabilities.
25
27Kernel Hackers Manual 2.6.         June 2019           REPARENT_TO_KTHREADD(9)
Impressum