mutex_type_adaptive Subroutine

int mutex_type_adaptive(kmutex_t *mutex)

mutex_type_adaptive returns non-zero if the specified kernel mutex is of type MUTEX_ADAPTIVE, or zero if it is not. Mutexes are adaptive if they meet one or more of the following conditions:

  • The mutex is declared statically.

  • The mutex is created with an interrupt block cookie of NULL.

  • The mutex is created with an interrupt block cookie that does not correspond to a high-level interrupt.

For more information about mutexes, see mutex_init(9F). The majority of mutexes in the Oracle Solaris kernel are adaptive.