other versions
- wheezy 3.2.78-1
TRY_WAIT_FOR_COMPLET(9) | Driver Basics | TRY_WAIT_FOR_COMPLET(9) |
NAME¶
try_wait_for_completion - try to decrement a completion without blockingSYNOPSIS¶
bool
try_wait_for_completion(struct completion * x);
ARGUMENTS¶
xcompletion structure
RETURNS¶
0 if a decrement cannot be done without blocking 1 if a decrement succeeded. If a completion is being used as a counting completion, attempt to decrement the counter without blocking. This enables us to avoid waiting if the resource the completion is protecting is not available.COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |