Home
last modified time | relevance | path

Searched refs:mutex_t (Results 1 – 6 of 6) sorted by relevance

/DragonOS-0.1.7/kernel/src/common/
Dmutex.h22 } mutex_t; typedef
39 void mutex_init(mutex_t *lock);
46 void mutex_lock(mutex_t *lock);
53 void mutex_unlock(mutex_t *lock);
62 int mutex_trylock(mutex_t *lock);
Dblk_types.h86 mutex_t open_mutex; // open()/close()操作的互斥锁
/DragonOS-0.1.7/kernel/src/libs/
Dmutex.c10 void mutex_init(mutex_t *lock) in mutex_init()
24 static void __mutex_acquire(mutex_t *lock) in __mutex_acquire()
32 void mutex_lock(mutex_t *lock) in mutex_lock()
71 void mutex_unlock(mutex_t *lock) in mutex_unlock()
104 int mutex_trylock(mutex_t *lock) in mutex_trylock()
/DragonOS-0.1.7/docs/kernel/locking/
Dmutex.md138 } mutex_t;
145 **`void mutex_init(mutex_t *lock)`**
151 **`void mutex_lock(mutex_t *lock)`**
157 **`void mutex_unlock(mutex_t *lock)`**
163 **`void mutex_trylock(mutex_t *lock)`**
169 **`void mutex_is_locked(mutex_t *lock)`**
Dlocks.md19 - mutex_t
/DragonOS-0.1.7/kernel/src/ktest/
Dtest-mutex.c7 static mutex_t mtx;