Query: mutex_trylock
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MUTEX_TRYLOCK(9) Mutex API reference MUTEX_TRYLOCK(9)NAMEmutex_trylock - try to acquire the mutex, without waitingSYNOPSISint __sched mutex_trylock(struct mutex * lock);ARGUMENTSlock the mutex to be acquiredDESCRIPTIONTry to acquire the mutex atomically. Returns 1 if the mutex has been acquired successfully, and 0 on contention.NOTEthis function follows the spin_trylock convention, so it is negated from the down_trylock return values! Be careful about this when converting semaphore users to mutexes. This function must not be used in interrupt context. The mutex must be released by the same task that acquired it.AUTHORRusty Russell <rusty@rustcorp.com.au> Author.COPYRIGHTKernel Hackers Manual 3.10 June 2014 MUTEX_TRYLOCK(9)
Related Man Pages |
---|
pthread_mutex_trylock(3c) - opensolaris |
pthread_mutex_consistent_np(3c) - sunos |
mlock(3) - debian |
pthread_mutex_unlock(3t) - hpux |
pthread_mutex_unlock(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
pthread_mutex_trylock() overwrites global variable on CentOS5 |
pthread_mutex_trylock usage |