Query: atomic_dec_and_mutex_lock
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ATOMIC_DEC_AND_MUTEX(9) Mutex API reference ATOMIC_DEC_AND_MUTEX(9)NAMEatomic_dec_and_mutex_lock - return holding mutex if we dec to 0SYNOPSISint atomic_dec_and_mutex_lock(atomic_t * cnt, struct mutex * lock);ARGUMENTScnt the atomic which we are to dec lock the mutex to return holding if we dec to 0DESCRIPTIONreturn true and hold lock if we dec to 0, return false otherwiseAUTHORRusty Russell <rusty@rustcorp.com.au> Author.COPYRIGHTKernel Hackers Manual 3.10 June 2014 ATOMIC_DEC_AND_MUTEX(9)