/DragonOS-0.1.8/kernel/src/common/ |
D | spinlock.h | 22 int8_t lock; // 1:unlocked 0:locked member 38 void spin_lock(spinlock_t *lock) in spin_lock() 48 void spin_unlock(spinlock_t *lock) in spin_unlock() 58 void spin_init(spinlock_t *lock) in spin_init() 70 void spin_lock_no_preempt(spinlock_t *lock) in spin_lock_no_preempt() 80 void spin_unlock_no_preempt(spinlock_t *lock) in spin_unlock_no_preempt() 91 long spin_trylock(spinlock_t *lock) in spin_trylock() 100 #define spin_lock_irqsave(lock, flags) … argument 111 #define spin_unlock_irqrestore(lock, flags) … argument 122 #define spin_lock_irq(lock) … argument [all …]
|
D | kfifo.h | 130 …ays_inline kfifo_in_locked(struct kfifo_t *fifo, const void *from, uint32_t size, spinlock_t *lock) in kfifo_in_locked() 147 …t __always_inline kfifo_out_locked(struct kfifo_t *fifo, void *to, uint32_t size, spinlock_t *lock) in kfifo_out_locked()
|
D | lockref.h | 19 spinlock_t lock; member
|
D | mutex.h | 69 #define mutex_is_locked(lock) ((atomic_read(&(lock)->count) == 1) ? 0 : 1) argument
|
D | wait_queue.h | 57 spinlock_t lock; // 队列需要有一个自旋锁,虽然目前内部并没有使用,但是以后可能会用.[在completion内部使用] member
|
D | idr.h | 71 spinlock_t lock; member
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/asm/ |
D | spinlock.c | 4 void __arch_spin_lock(spinlock_t *lock) in __arch_spin_lock() 19 void __arch_spin_unlock(spinlock_t *lock) in __arch_spin_unlock() 25 void __arch_spin_lock_no_preempt(spinlock_t *lock) in __arch_spin_lock_no_preempt() 39 void __arch_spin_unlock_no_preempt(spinlock_t *lock) in __arch_spin_unlock_no_preempt() 44 long __arch_spin_trylock(spinlock_t *lock) in __arch_spin_trylock()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | mutex.c | 10 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()
|
D | spinlock.rs | 75 pub fn lock(&self) { in lock() method 165 lock: RawSpinlock, field 175 lock: &'a SpinLock<T>, field 210 pub fn lock(&self) -> SpinLockGuard<T> { in lock() method
|
D | wait_queue_head.c | 37 void wait_queue_sleep_with_node_unlock(wait_queue_head_t *q, wait_queue_node_t *wait, void *lock) in wait_queue_sleep_with_node_unlock()
|
D | wait_queue.c | 40 void *lock) in wait_queue_sleep_on_unlock()
|
D | mutex.rs | 40 lock: &'a Mutex<T>, field 62 pub fn lock(&self) -> MutexGuard<T> { in lock() method
|
D | lockref.rs | 11 pub lock: RawSpinlock, field 18 lock: RawSpinlock, field
|
D | rwlock.rs | 36 lock: AtomicU32, field 44 lock: &'a AtomicU32, field
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | kernel_mapper.rs | 62 pub fn lock() -> Self { in lock() method
|
D | ucontext.rs | 810 pub fn lock(&self) -> SpinLockGuard<VMA> { in lock() method
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | signal.rs | 167 let lock = { &mut sighand_ptr.unwrap().siglock }; in lock_process_sighand() localVariable 179 let lock = unsafe { &mut (*pcb.sighand).siglock }; in unlock_process_sighand() localVariable 914 let lock: &mut spinlock_t = &mut sighand_struct::convert_mut(pcb.sighand).unwrap().siglock; in set_current_sig_blocked() localVariable
|
/DragonOS-0.1.8/kernel/src/libs/libUI/ |
D | textui.h | 111 spinlock_t lock; // 窗口操作锁 member
|
/DragonOS-0.1.8/kernel/src/sched/ |
D | cfs.rs | 42 lock: RawSpinlock, field
|
D | rt.rs | 39 lock: RawSpinlock, field
|
/DragonOS-0.1.8/user/libs/libc/src/include/export/sys/ |
D | types.h | 55 uint32_t lock; member
|
/DragonOS-0.1.8/kernel/src/common/sys/ |
D | types.h | 59 uint32_t lock; member
|