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

NAME

6       kthread_should_park - should this kthread park now?
7

SYNOPSIS

9       bool kthread_should_park(void);
10

ARGUMENTS

12       void
13           no arguments
14

DESCRIPTION

16       When someone calls kthread_park on your kthread, it will be woken and
17       this will return true. You should then do the necessary cleanup and
18       call kthread_parkme
19
20       Similar to kthread_should_stop, but this keeps the thread alive and in
21       a park position.  kthread_unpark“restarts” the thread and calls the
22       thread function again.
23
25Kernel Hackers Manual 3.10         June 2019            KTHREAD_SHOULD_PARK(9)
Impressum