other versions
- wheezy 3.2.78-1
WORK_BUSY(9) | Driver Basics | WORK_BUSY(9) |
NAME¶
work_busy - test whether a work is currently pending or runningSYNOPSIS¶
unsigned
int
work_busy(struct work_struct * work);
ARGUMENTS¶
workthe work to be tested
DESCRIPTION¶
Test whether work is currently pending or running. There is no synchronization around this function and the test result is unreliable and only useful as advisory hints or for debugging. Especially for reentrant wqs, the pending state might hide the running state.RETURNS¶
OR'd bitmask of WORK_BUSY_* bits.COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |