Home
last modified time | relevance | path

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

/DragonOS/kernel/src/common/
H A 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/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/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/libs/
H A Dspinlock.rs18 lock: AtomicBool, field
28 lock: &'a SpinLock<T>, field
71 pub fn lock(&self) -> SpinLockGuard<T> { in lock() method
H A Dmutex.rs40 lock: &'a Mutex<T>, field
62 pub fn lock(&self) -> MutexGuard<T> { in lock() method
H A Drwlock.rs38 lock: AtomicU32, field
46 lock: &'a AtomicU32, field
/DragonOS/kernel/src/filesystem/overlayfs/
H A Dcopy_up.rs22 let lock = SpinLock::new(crate::filesystem::vfs::FilePrivateData::Unused); in copy_up() localVariable
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dept.rs73 pub fn lock() -> Self { in lock() method
/DragonOS/kernel/src/mm/
H A Dkernel_mapper.rs66 pub fn lock() -> Self { in lock() method
H A Ducontext.rs1116 pub fn lock(&self) -> SpinLockGuard<VMA> { in lock() method
/DragonOS/kernel/src/common/sys/
H A Dtypes.h59 uint32_t lock; member
/DragonOS/kernel/src/driver/base/map/
H A Dmod.rs131 pub fn lock(&self) -> SpinLockGuard<DevsMap> { in lock() method
/DragonOS/kernel/src/sched/
H A Dmod.rs289 lock: SpinLock<()>, field
389 fn lock(&self) -> SpinLockGuard<()> { in lock() method
/DragonOS/kernel/src/driver/block/cache/
H A Dcached_block_device.rs309 lock: RwLock<CacheMapper>, field
/DragonOS/kernel/src/include/bindings/
H A Dlinux_bpf.rs2185 pub lock: __u32, field