4 #ifndef __KERNEL_MUTEX_H__
5 #define __KERNEL_MUTEX_H__
25 int __mutex_lock(
struct mutex *mtx);
void mutex_init(struct mutex *mtx)
Initialize the mutex.
Definition: mutex.c:14
int mutex_lock(struct mutex *mtx)
Lock the mutex.
Definition: mutex.c:55
int mutex_unlock(struct mutex *mtx)
Unlock the mutex.
Definition: mutex.c:71
bool mutex_is_locked(struct mutex *mtx)
Check if the mutex is locked or not.
Definition: mutex.c:20