1TRY_WAIT_FOR_COMPLET(9) Driver Basics TRY_WAIT_FOR_COMPLET(9)
2
3
4
6 try_wait_for_completion - try to decrement a completion without
7 blocking
8
10 bool try_wait_for_completion(struct completion * x);
11
13 x
14 completion structure
15
17 0 if a decrement cannot be done without blocking 1 if a decrement
18 succeeded.
19
20 If a completion is being used as a counting completion, attempt to
21 decrement the counter without blocking. This enables us to avoid
22 waiting if the resource the completion is protecting is not available.
23
25Kernel Hackers Manual 2.6. November 2011 TRY_WAIT_FOR_COMPLET(9)