/DragonOS/kernel/src/common/ |
H A 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 …]
|
/DragonOS/kernel/src/arch/x86_64/asm/ |
H A 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/kernel/src/arch/riscv64/asm/ |
H A D | spinlock.c | 4 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/libs/ |
H A D | spinlock.rs | 18 lock: AtomicBool, field 28 lock: &'a SpinLock<T>, field 71 pub fn lock(&self) -> SpinLockGuard<T> { in lock() method
|
H A D | mutex.rs | 40 lock: &'a Mutex<T>, field 62 pub fn lock(&self) -> MutexGuard<T> { in lock() method
|
H A D | rwlock.rs | 38 lock: AtomicU32, field 46 lock: &'a AtomicU32, field
|
/DragonOS/kernel/src/filesystem/overlayfs/ |
H A D | copy_up.rs | 22 let lock = SpinLock::new(crate::filesystem::vfs::FilePrivateData::Unused); in copy_up() localVariable
|
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/ |
H A D | ept.rs | 73 pub fn lock() -> Self { in lock() method
|
/DragonOS/kernel/src/mm/ |
H A D | kernel_mapper.rs | 66 pub fn lock() -> Self { in lock() method
|
H A D | ucontext.rs | 1116 pub fn lock(&self) -> SpinLockGuard<VMA> { in lock() method
|
/DragonOS/kernel/src/common/sys/ |
H A D | types.h | 59 uint32_t lock; member
|
/DragonOS/kernel/src/driver/base/map/ |
H A D | mod.rs | 131 pub fn lock(&self) -> SpinLockGuard<DevsMap> { in lock() method
|
/DragonOS/kernel/src/sched/ |
H A D | mod.rs | 289 lock: SpinLock<()>, field 389 fn lock(&self) -> SpinLockGuard<()> { in lock() method
|
/DragonOS/kernel/src/driver/block/cache/ |
H A D | cached_block_device.rs | 309 lock: RwLock<CacheMapper>, field
|
/DragonOS/kernel/src/include/bindings/ |
H A D | linux_bpf.rs | 2185 pub lock: __u32, field
|