Chapter 11. Mutex API reference

Table of Contents

mutex_init — initialize the mutex
mutex_is_locked — is the mutex locked
mutex_trylock_recursive — trylock variant that allows recursive locking
mutex_lock — acquire the mutex
mutex_unlock — release the mutex
ww_mutex_unlock — release the w/w mutex
mutex_lock_interruptible — acquire the mutex, interruptible
mutex_trylock — try to acquire the mutex, without waiting
atomic_dec_and_mutex_lock — return holding mutex if we dec to 0