Initialize the mutex
mutex_init(mutex);
mutex
the mutex to be initialized
Initialize the mutex to unlocked state.
It is not allowed to initialize an already locked mutex.
Rusty Russell <[email protected]>
Author.