Home
last modified time | relevance | path

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

12

/DragonOS-0.1.7/kernel/src/common/
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 …]
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 uint32_t __always_inline kfifo_out_locked(struct kfifo_t *fifo, void *to, uint32_t size, spinlock_t in kfifo_out_locked()
Dmutex.h20 spinlock_t wait_lock; // mutex操作锁,用于对mutex的list的操作进行加锁
Dlockref.h19 spinlock_t lock;
Dwait_queue.h57 spinlock_t lock; // 队列需要有一个自旋锁,虽然目前内部并没有使用,但是以后可能会用.[在completion内部使用]
Didr.h71 spinlock_t lock;
/DragonOS-0.1.7/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.7/docs/kernel/locking/
Dlocks.md23 - spinlock_t
24 - {ref}`RawSpinLock <_spinlock_doc_rawspinlock>`(Rust版本的spinlock_t,但与spinlock_t不兼容)
Dspinlock.md24 `RawSpinLock`与C版本的`spinlock_t`不具有二进制兼容性。如果由于暂时的兼容性的需求,要操作C版本的`spinlock_t`,请使用`spinlock.rs`中提供的C版本的s…
26 但是,对于新开发的功能,请不要使用C版本的`spinlock_t`,因为随着代码重构的进行,我们将会移除它。
Dmutex.md136 spinlock_t wait_lock; // mutex操作锁,用于对mutex的list的操作进行加锁
Dlockref.md41 spinlock_t lock;
/DragonOS-0.1.7/kernel/src/libs/
Dspinlock.rs10 use crate::include::bindings::bindings::{spin_lock, spin_unlock, spinlock_t};
16 pub fn spin_lock_irqsave(lock: *mut spinlock_t, flags: &mut u64) { in spin_lock_irqsave() argument
25 pub fn spin_unlock_irqrestore(lock: *mut spinlock_t, flags: &u64) { in spin_unlock_irqrestore() argument
35 pub fn spin_is_locked(lock: &spinlock_t) -> bool { in spin_is_locked()
41 impl Default for spinlock_t { implementation
48 pub fn spin_lock_irq(lock: *mut spinlock_t) { in spin_lock_irq() argument
56 pub fn spin_unlock_irq(lock: *mut spinlock_t) { in spin_unlock_irq() argument
Dwait_queue.c46 spin_unlock((spinlock_t *)lock); in wait_queue_sleep_on_unlock()
Dwait_queue_head.c43 spin_unlock((spinlock_t *)lock); in wait_queue_sleep_with_node_unlock()
/DragonOS-0.1.7/kernel/src/process/
Dinitial_proc.rs6 include::bindings::bindings::{atomic_t, process_control_block, spinlock_t},
22 siglock: spinlock_t { lock: 1 },
/DragonOS-0.1.7/kernel/src/driver/usb/
Dusb.c9 extern spinlock_t xhci_controller_init_lock; // xhci控制器初始化锁
/DragonOS-0.1.7/kernel/src/driver/interrupt/apic/
Dapic_timer.c10 static spinlock_t apic_timer_init_lock = {1};
/DragonOS-0.1.7/kernel/src/mm/
Dslab.h46 spinlock_t lock; // 当前内存池的操作锁
Dmm-types.h110 spinlock_t op_lock; // 页面操作锁
/DragonOS-0.1.7/kernel/src/include/DragonOS/
Dsignal.h132 spinlock_t siglock;
/DragonOS-0.1.7/kernel/src/libs/libUI/
Dtextui.h111 spinlock_t lock; // 窗口操作锁
Dscreen_manager.c13 static spinlock_t scm_register_lock; // 框架注册锁
14 static spinlock_t scm_screen_own_lock = {1}; // 改变屏幕归属者时,需要对该锁加锁
Dtextui.c11 static spinlock_t __window_id_lock = {1};
22 static spinlock_t change_lock;
/DragonOS-0.1.7/kernel/src/driver/video/
Dvideo.c25 static spinlock_t daemon_refresh_lock;
/DragonOS-0.1.7/kernel/src/driver/keyboard/
Dps2_keyboard.c20 static spinlock_t ps2_kb_buf_rw_lock;

12