Home
last modified time | relevance | path

Searched refs:spinlock_t (Results 1 – 8 of 8) sorted by relevance

/DragonOS/kernel/src/common/
H A Dspinlock.h23 } spinlock_t; typedef
25 extern void __arch_spin_lock(spinlock_t *lock);
26 extern void __arch_spin_unlock(spinlock_t *lock);
28 extern void __arch_spin_lock_no_preempt(spinlock_t *lock);
29 extern void __arch_spin_unlock_no_preempt(spinlock_t *lock);
31 extern long __arch_spin_trylock(spinlock_t *lock);
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()
[all …]
/DragonOS/kernel/src/arch/riscv64/asm/
H A Dspinlock.c4 void __arch_spin_lock(spinlock_t *lock) in __arch_spin_lock()
10 void __arch_spin_unlock(spinlock_t *lock) in __arch_spin_unlock()
16 void __arch_spin_lock_no_preempt(spinlock_t *lock) in __arch_spin_lock_no_preempt()
21 void __arch_spin_unlock_no_preempt(spinlock_t *lock) in __arch_spin_unlock_no_preempt()
26 long __arch_spin_trylock(spinlock_t *lock) in __arch_spin_trylock()
/DragonOS/kernel/src/arch/x86_64/asm/
H A 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/docs/kernel/locking/
H A Dlocks.md23 - spinlock_t
24 - {ref}`RawSpinLock <_spinlock_doc_rawspinlock>`(Rust版本的spinlock_t,但与spinlock_t不兼容)
H A Dspinlock.md24 `RawSpinLock`与C版本的`spinlock_t`不具有二进制兼容性。如果由于暂时的兼容性的需求,要操作C版本的`spinlock_t`,请使用`spinlock.rs`中提供的C版本的s…
26 但是,对于新开发的功能,请不要使用C版本的`spinlock_t`,因为随着代码重构的进行,我们将会移除它。
H A Dmutex.md136 spinlock_t wait_lock; // mutex操作锁,用于对mutex的list的操作进行加锁
/DragonOS/docs/kernel/sched/
H A Dc_waiting.md86 spinlock_t lock; // 队列需要有一个自旋锁,虽然目前内部并没有使用,但是以后可能会用.
/DragonOS/kernel/src/libs/
H A Dprintk.c14 static spinlock_t __printk_lock = {1};