table of contents
KTHREAD_SHOULD_PARK(9) | Driver Basics | KTHREAD_SHOULD_PARK(9) |
NAME¶
kthread_should_park - should this kthread park now?
SYNOPSIS¶
bool kthread_should_park(void);
ARGUMENTS¶
void
no arguments
DESCRIPTION¶
When someone calls kthread_park on your kthread, it will be woken and this will return true. You should then do the necessary cleanup and call kthread_parkme
Similar to kthread_should_stop, but this keeps the thread alive and in a park position. kthread_unpark“restarts” the thread and calls the thread function again.
COPYRIGHT¶
June 2024 | Kernel Hackers Manual 3.10 |