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

NAME

6       kthread_park - park a thread created by kthread_create.
7

SYNOPSIS

9       int kthread_park(struct task_struct * k);
10

ARGUMENTS

12       k
13           thread created by kthread_create.
14

DESCRIPTION

16       Sets kthread_should_park for k to return true, wakes it, and waits for
17       it to return. This can also be called after kthread_create instead of
18       calling wake_up_process: the thread will park without calling threadfn.
19
20       Returns 0 if the thread is parked, -ENOSYS if the thread exited. If
21       called by the kthread itself just the park bit is set.
22
24Kernel Hackers Manual 3.10         June 2019                   KTHREAD_PARK(9)
Impressum