|
@@ -144,6 +144,8 @@ extern int __must_check mutex_lock_killable(struct mutex *lock);
|
|
/*
|
|
/*
|
|
* NOTE: mutex_trylock() follows the spin_trylock() convention,
|
|
* NOTE: mutex_trylock() follows the spin_trylock() convention,
|
|
* not the down_trylock() convention!
|
|
* not the down_trylock() convention!
|
|
|
|
+ *
|
|
|
|
+ * Returns 1 if the mutex has been acquired successfully, and 0 on contention.
|
|
*/
|
|
*/
|
|
extern int mutex_trylock(struct mutex *lock);
|
|
extern int mutex_trylock(struct mutex *lock);
|
|
extern void mutex_unlock(struct mutex *lock);
|
|
extern void mutex_unlock(struct mutex *lock);
|