table of contents
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¶
June 2024 | Kernel Hackers Manual 3.10 |