version 1.64, 2017/01/26 04:11:56 |
version 1.64.4.1, 2017/04/30 04:56:55 |
Line 831 mutex_owner(kmutex_t *mtx) |
|
Line 831 mutex_owner(kmutex_t *mtx) |
|
} |
} |
|
|
/* |
/* |
|
* mutex_ownable: |
|
* |
|
* When compiled with LOCKDEBUG defined, ensure that the |
|
* mutex is available. We cannot use !mutex_owned() |
|
* since that won't work correctly for spin mutexes. |
|
*/ |
|
int |
|
mutex_ownable(kmutex_t *mtx) |
|
{ |
|
|
|
#ifdef LOCKDEBUG |
|
mutex_enter(mtx); |
|
mutex_exit(mtx); |
|
#endif |
|
return 1; |
|
} |
|
|
|
/* |
* mutex_tryenter: |
* mutex_tryenter: |
* |
* |
* Try to acquire the mutex; return non-zero if we did. |
* Try to acquire the mutex; return non-zero if we did. |