kthread_park(9) - phpMan
KTHREAD_PARK(9) Driver Basics KTHREAD_PARK(9)
NAME
kthread_park - park a thread created by kthread_create.
SYNOPSIS
int kthread_park(struct task_struct * k);
ARGUMENTS
k
thread created by kthread_create.
DESCRIPTION
Sets kthread_should_park for k to return true, wakes it, and waits for it to return. This
can also be called after kthread_create instead of calling wake_up_process: the thread
will park without calling threadfn.
Returns 0 if the thread is parked, -ENOSYS if the thread exited. If called by the kthread
itself just the park bit is set.
COPYRIGHT
Kernel Hackers Manual 4.8. January 2017 KTHREAD_PARK(9)
|