other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
ATOMIC_DEC_AND_MUTEX(9) | Mutex API reference | ATOMIC_DEC_AND_MUTEX(9) |
NAME¶
atomic_dec_and_mutex_lock - return holding mutex if we dec to 0SYNOPSIS¶
int
atomic_dec_and_mutex_lock(atomic_t * cnt,
struct mutex * lock);
ARGUMENTS¶
cntthe atomic which we are to dec
lock
the mutex to return holding if we dec to 0
DESCRIPTION¶
return true and hold lock if we dec to 0, return false otherwiseAUTHOR¶
Rusty Russell <rusty@rustcorp.com.au>Author.
COPYRIGHT¶
May 2018 | Kernel Hackers Manual 4.9. |