Home
last modified time | relevance | path

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

12

/DragonOS-0.1.2/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 …]
Dmutex.h20 spinlock_t wait_lock; // mutex操作锁,用于对mutex的list的操作进行加锁
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()
Dlockref.h19 spinlock_t lock;
Dwait_queue.h57 spinlock_t lock; // 队列需要有一个自旋锁,虽然目前内部并没有使用,但是以后可能会用.[在completion内部使用]
Didr.h71 spinlock_t lock;
/DragonOS-0.1.2/kernel/src/libs/
Dspinlock.rs6 use crate::include::bindings::bindings::{spin_lock, spin_unlock, spinlock_t};
10 pub fn spin_lock_irqsave(lock: *mut spinlock_t, flags: &mut u64) { in spin_lock_irqsave() argument
19 pub fn spin_unlock_irqrestore(lock: *mut spinlock_t, flags: &u64) { in spin_unlock_irqrestore() argument
29 pub fn spin_is_locked(lock: &spinlock_t) -> bool { in spin_is_locked()
35 impl Default for spinlock_t { implementation
42 pub fn spin_lock_irq(lock: *mut spinlock_t){ in spin_lock_irq() argument
48 pub fn spin_unlock_irq(lock: *mut spinlock_t){ in spin_unlock_irq() argument
Dwait_queue_head.c43 spin_unlock((spinlock_t *)lock); in wait_queue_sleep_with_node_unlock()
Dwait_queue.c46 spin_unlock((spinlock_t *)lock); in wait_queue_sleep_on_unlock()
/DragonOS-0.1.2/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.2/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.2/docs/kernel/locking/
Dlocks.md23 - spinlock_t
63 spinlock_t wait_lock; // mutex操作锁,用于对mutex的list的操作进行加锁
Dlockref.md18 spinlock_t lock;
/DragonOS-0.1.2/kernel/src/mm/
Dmmio-buddy.h40 spinlock_t op_lock; // 操作锁
Dslab.h46 spinlock_t lock; // 当前内存池的操作锁
Dmm-types.h110 spinlock_t op_lock; // 页面操作锁
/DragonOS-0.1.2/kernel/src/driver/usb/
Dusb.c9 extern spinlock_t xhci_controller_init_lock; // xhci控制器初始化锁
/DragonOS-0.1.2/kernel/src/exception/
Dsoftirq.c7 static spinlock_t softirq_modify_lock; // 软中断状态(status)
/DragonOS-0.1.2/kernel/src/include/DragonOS/
Dsignal.h132 spinlock_t siglock;
/DragonOS-0.1.2/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.2/kernel/src/driver/video/
Dvideo.c23 static spinlock_t daemon_refresh_lock;
/DragonOS-0.1.2/kernel/src/time/
Dtimer.c10 static spinlock_t sched_lock;
/DragonOS-0.1.2/kernel/src/driver/keyboard/
Dps2_keyboard.c19 static spinlock_t ps2_kb_buf_rw_lock;

12