Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 22 of 22) sorted by relevance

/DragonOS-0.1.8/kernel/src/common/
Dspinlock.h22 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 …]
Dkfifo.h130 …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()
Dlockref.h19 spinlock_t lock; member
Dmutex.h69 #define mutex_is_locked(lock) ((atomic_read(&(lock)->count) == 1) ? 0 : 1) argument
Dwait_queue.h57 spinlock_t lock; // 队列需要有一个自旋锁,虽然目前内部并没有使用,但是以后可能会用.[在completion内部使用] member
Didr.h71 spinlock_t lock; member
/DragonOS-0.1.8/kernel/src/arch/x86_64/asm/
Dspinlock.c4 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/
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()
Dspinlock.rs75 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
Dwait_queue_head.c37 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()
Dwait_queue.c40 void *lock) in wait_queue_sleep_on_unlock()
Dmutex.rs40 lock: &'a Mutex<T>, field
62 pub fn lock(&self) -> MutexGuard<T> { in lock() method
Dlockref.rs11 pub lock: RawSpinlock, field
18 lock: RawSpinlock, field
Drwlock.rs36 lock: AtomicU32, field
44 lock: &'a AtomicU32, field
/DragonOS-0.1.8/kernel/src/mm/
Dkernel_mapper.rs62 pub fn lock() -> Self { in lock() method
Ducontext.rs810 pub fn lock(&self) -> SpinLockGuard<VMA> { in lock() method
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal.rs167 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/
Dtextui.h111 spinlock_t lock; // 窗口操作锁 member
/DragonOS-0.1.8/kernel/src/sched/
Dcfs.rs42 lock: RawSpinlock, field
Drt.rs39 lock: RawSpinlock, field
/DragonOS-0.1.8/user/libs/libc/src/include/export/sys/
Dtypes.h55 uint32_t lock; member
/DragonOS-0.1.8/kernel/src/common/sys/
Dtypes.h59 uint32_t lock; member