Home
last modified time | relevance | path

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

/DragonOS-0.1.2/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.h93 mutex_t open_mutex; // open()/close()操作的互斥锁
/DragonOS-0.1.2/docs/kernel/locking/
Dlocks.md19 - mutex_t
65 } mutex_t;
72 **`void mutex_init(mutex_t *lock)`**
78 **`void mutex_lock(mutex_t *lock)`**
84 **`void mutex_unlock(mutex_t *lock)`**
90 **`void mutex_trylock(mutex_t *lock)`**
96 **`void mutex_is_locked(mutex_t *lock)`**
/DragonOS-0.1.2/kernel/src/libs/
Dmutex.c10 void mutex_init(mutex_t *lock) in mutex_init()
23 static void __mutex_acquire(mutex_t *lock) in __mutex_acquire()
31 void mutex_lock(mutex_t *lock) in mutex_lock()
70 void mutex_unlock(mutex_t *lock) in mutex_unlock()
103 int mutex_trylock(mutex_t *lock) in mutex_trylock()
/DragonOS-0.1.2/kernel/src/filesystem/devfs/
Dchardev.c34 mutex_t lock; // 操作互斥锁
/DragonOS-0.1.2/kernel/src/ktest/
Dtest-mutex.c7 static mutex_t mtx;