1ATOMIC_DEC_AND_MUTEX(9) Mutex API reference ATOMIC_DEC_AND_MUTEX(9)
2
3
4
6 atomic_dec_and_mutex_lock - return holding mutex if we dec to 0
7
9 int atomic_dec_and_mutex_lock(atomic_t * cnt, struct mutex * lock);
10
12 cnt
13 the atomic which we are to dec
14
15 lock
16 the mutex to return holding if we dec to 0
17
19 return true and hold lock if we dec to 0, return false otherwise
20
22 Rusty Russell <rusty@rustcorp.com.au>
23 Author.
24
26Kernel Hackers Manual 3.10 June 2019 ATOMIC_DEC_AND_MUTEX(9)