try_wait_for_completion9
Try to decrement a completion without blocking
Usage
bool try_wait_for_completion(struct completion * x);
Arguments
x
completion 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.
Releases
2 releases since Debian 6.0 (Squeeze); the text changed 1 time.