Home
last modified time | relevance | path

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

/DragonOS-0.1.9/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 …]
/DragonOS-0.1.9/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.9/kernel/src/arch/riscv64/asm/
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-0.1.9/kernel/src/libs/
Dspinlock.rs18 lock: AtomicBool, field
28 lock: &'a SpinLock<T>, field
71 pub fn lock(&self) -> SpinLockGuard<T> { in lock() method
Dmutex.rs39 lock: &'a Mutex<T>, field
61 pub fn lock(&self) -> MutexGuard<T> { in lock() method
Drwlock.rs39 lock: AtomicU32, field
47 lock: &'a AtomicU32, field
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/vmx/
Dept.rs73 pub fn lock() -> Self { in lock() method
/DragonOS-0.1.9/kernel/src/mm/
Dkernel_mapper.rs66 pub fn lock() -> Self { in lock() method
Ducontext.rs899 pub fn lock(&self) -> SpinLockGuard<VMA> { in lock() method
/DragonOS-0.1.9/kernel/src/common/sys/
Dtypes.h59 uint32_t lock; member
/DragonOS-0.1.9/kernel/src/driver/base/map/
Dmod.rs134 pub fn lock(&self) -> SpinLockGuard<DevsMap> { in lock() method