include/linux/mutex.h
changeset 2 d1f6d8b6f81c
parent 0 aa628870c1d3
equal deleted inserted replaced
1:0056487c491e 2:d1f6d8b6f81c
   142 #endif
   142 #endif
   143 
   143 
   144 /*
   144 /*
   145  * NOTE: mutex_trylock() follows the spin_trylock() convention,
   145  * NOTE: mutex_trylock() follows the spin_trylock() convention,
   146  *       not the down_trylock() convention!
   146  *       not the down_trylock() convention!
       
   147  *
       
   148  * Returns 1 if the mutex has been acquired successfully, and 0 on contention.
   147  */
   149  */
   148 extern int mutex_trylock(struct mutex *lock);
   150 extern int mutex_trylock(struct mutex *lock);
   149 extern void mutex_unlock(struct mutex *lock);
   151 extern void mutex_unlock(struct mutex *lock);
   150 
   152 
   151 #endif
   153 #endif