This function is declared in the kos/mutex.h file.
kos/mutex.h
void KosMutexInitEx(KosMutex *mutex, int recursive);
Initializes the mutex in an unlocked state.
mutex
To initialize a recursive mutex, you need to pass the value 1 to the recursive parameter.
recursive