/DragonOS-0.1.2/kernel/src/common/ |
D | spinlock.h | 23 } 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 …]
|
D | mutex.h | 20 spinlock_t wait_lock; // mutex操作锁,用于对mutex的list的操作进行加锁
|
D | kfifo.h | 130 …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()
|
D | lockref.h | 19 spinlock_t lock;
|
D | wait_queue.h | 57 spinlock_t lock; // 队列需要有一个自旋锁,虽然目前内部并没有使用,但是以后可能会用.[在completion内部使用]
|
D | idr.h | 71 spinlock_t lock;
|
/DragonOS-0.1.2/kernel/src/libs/ |
D | spinlock.rs | 6 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
|
D | wait_queue_head.c | 43 spin_unlock((spinlock_t *)lock); in wait_queue_sleep_with_node_unlock()
|
D | wait_queue.c | 46 spin_unlock((spinlock_t *)lock); in wait_queue_sleep_on_unlock()
|
/DragonOS-0.1.2/kernel/src/arch/x86_64/asm/ |
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-0.1.2/kernel/src/process/ |
D | initial_proc.rs | 6 include::bindings::bindings::{atomic_t, process_control_block, spinlock_t}, 22 siglock: spinlock_t { lock: 1 },
|
/DragonOS-0.1.2/docs/kernel/locking/ |
D | locks.md | 23 - spinlock_t 63 spinlock_t wait_lock; // mutex操作锁,用于对mutex的list的操作进行加锁
|
D | lockref.md | 18 spinlock_t lock;
|
/DragonOS-0.1.2/kernel/src/mm/ |
D | mmio-buddy.h | 40 spinlock_t op_lock; // 操作锁
|
D | slab.h | 46 spinlock_t lock; // 当前内存池的操作锁
|
D | mm-types.h | 110 spinlock_t op_lock; // 页面操作锁
|
/DragonOS-0.1.2/kernel/src/driver/usb/ |
D | usb.c | 9 extern spinlock_t xhci_controller_init_lock; // xhci控制器初始化锁
|
/DragonOS-0.1.2/kernel/src/exception/ |
D | softirq.c | 7 static spinlock_t softirq_modify_lock; // 软中断状态(status)
|
/DragonOS-0.1.2/kernel/src/include/DragonOS/ |
D | signal.h | 132 spinlock_t siglock;
|
/DragonOS-0.1.2/kernel/src/libs/libUI/ |
D | textui.h | 111 spinlock_t lock; // 窗口操作锁
|
D | screen_manager.c | 13 static spinlock_t scm_register_lock; // 框架注册锁 14 static spinlock_t scm_screen_own_lock = {1}; // 改变屏幕归属者时,需要对该锁加锁
|
D | textui.c | 11 static spinlock_t __window_id_lock = {1}; 22 static spinlock_t change_lock;
|
/DragonOS-0.1.2/kernel/src/driver/video/ |
D | video.c | 23 static spinlock_t daemon_refresh_lock;
|
/DragonOS-0.1.2/kernel/src/time/ |
D | timer.c | 10 static spinlock_t sched_lock;
|
/DragonOS-0.1.2/kernel/src/driver/keyboard/ |
D | ps2_keyboard.c | 19 static spinlock_t ps2_kb_buf_rw_lock;
|