/DragonOS-0.1.5/kernel/src/libs/ |
D | rwlock.rs | 7 sync::atomic::{AtomicU32, Ordering}, 97 let value = self.lock.fetch_add(READER, Ordering::Acquire); in current_reader() 101 self.lock.fetch_sub(READER, Ordering::Release); in current_reader() 126 self.lock.fetch_sub(READER, Ordering::Release); in try_read() 152 let state = self.lock.load(Ordering::Relaxed); in reader_count() 160 return (self.lock.load(Ordering::Relaxed) & WRITER) / WRITER; in writer_count() 170 .compare_exchange(0, WRITER, Ordering::Acquire, Ordering::Relaxed) in try_write() 201 if self.lock.fetch_or(UPGRADED, Ordering::Acquire) & (WRITER | UPGRADED) == 0 { in try_upgradeable_read() 228 debug_assert!(self.lock.load(Ordering::Relaxed) & !WRITER > 0); in force_read_decrement() 229 self.lock.fetch_sub(READER, Ordering::Release); in force_read_decrement() [all …]
|
D | semaphore.rs | 1 use core::sync::atomic::{AtomicI32, Ordering}; 35 if self.counter.fetch_sub(1, Ordering::Release) <= 0 { in down() 36 self.counter.fetch_add(1, Ordering::Relaxed); in down() 47 self.counter.fetch_add(1, Ordering::Release); in up()
|
D | spinlock.rs | 6 use core::sync::atomic::{AtomicBool, Ordering}; 93 .compare_exchange(false, true, Ordering::Acquire, Ordering::Relaxed) in try_lock() 107 self.0.store(false, Ordering::Release); in unlock() 121 return self.0.load(Ordering::Relaxed).into(); in is_locked() 127 self.0.store(value, Ordering::SeqCst); in set_value()
|
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/ |
D | mod.rs | 52 compiler_fence(core::sync::atomic::Ordering::SeqCst); in ahci_rust_init() 60 compiler_fence(core::sync::atomic::Ordering::SeqCst); in ahci_rust_init() 69 compiler_fence(core::sync::atomic::Ordering::SeqCst); in ahci_rust_init() 78 compiler_fence(core::sync::atomic::Ordering::SeqCst); in ahci_rust_init() 82 compiler_fence(core::sync::atomic::Ordering::SeqCst); in ahci_rust_init() 89 compiler_fence(core::sync::atomic::Ordering::SeqCst); in ahci_rust_init() 110 compiler_fence(core::sync::atomic::Ordering::SeqCst); in ahci_rust_init() 124 compiler_fence(core::sync::atomic::Ordering::SeqCst); in ahci_rust_init() 157 compiler_fence(core::sync::atomic::Ordering::SeqCst); in ahci_rust_init() 170 compiler_fence(core::sync::atomic::Ordering::SeqCst); in get_disks_by_name() [all …]
|
D | ahcidisk.rs | 58 compiler_fence(core::sync::atomic::Ordering::SeqCst); in read_at() 180 compiler_fence(core::sync::atomic::Ordering::SeqCst); in read_at() 191 compiler_fence(core::sync::atomic::Ordering::SeqCst); in write_at() 210 compiler_fence(core::sync::atomic::Ordering::SeqCst); in write_at() 220 compiler_fence(core::sync::atomic::Ordering::SeqCst); in write_at() 232 compiler_fence(core::sync::atomic::Ordering::SeqCst); in write_at() 241 compiler_fence(core::sync::atomic::Ordering::SeqCst); in write_at() 302 compiler_fence(core::sync::atomic::Ordering::SeqCst); in write_at()
|
D | hba.rs | 203 compiler_fence(core::sync::atomic::Ordering::SeqCst); in init() 212 compiler_fence(core::sync::atomic::Ordering::SeqCst); in init() 224 compiler_fence(core::sync::atomic::Ordering::SeqCst); in init()
|
/DragonOS-0.1.5/kernel/src/sched/ |
D | cfs.rs | 194 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched() 199 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched() 203 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched() 206 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched() 212 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched() 219 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched() 224 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched() 226 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched() 228 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched()
|
D | core.rs | 78 compiler_fence(core::sync::atomic::Ordering::SeqCst); in __sched() 81 compiler_fence(core::sync::atomic::Ordering::SeqCst); in __sched() 106 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched_enqueue() 119 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched_enqueue() 121 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched_enqueue() 128 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched_enqueue()
|
D | rt.rs | 181 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched() 199 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sched()
|
/DragonOS-0.1.5/kernel/src/arch/x86_64/ |
D | context.rs | 14 compiler_fence(core::sync::atomic::Ordering::SeqCst); in switch_process() 18 compiler_fence(core::sync::atomic::Ordering::SeqCst); in switch_process()
|
/DragonOS-0.1.5/kernel/src/process/ |
D | fork.rs | 49 compiler_fence(core::sync::atomic::Ordering::SeqCst); in process_copy_sighand() 55 compiler_fence(core::sync::atomic::Ordering::SeqCst); in process_copy_sighand() 64 compiler_fence(core::sync::atomic::Ordering::SeqCst); in process_copy_sighand() 67 compiler_fence(core::sync::atomic::Ordering::SeqCst); in process_copy_sighand() 71 compiler_fence(core::sync::atomic::Ordering::SeqCst); in process_copy_sighand() 74 compiler_fence(core::sync::atomic::Ordering::SeqCst); in process_copy_sighand() 76 compiler_fence(core::sync::atomic::Ordering::SeqCst); in process_copy_sighand()
|
/DragonOS-0.1.5/kernel/src/arch/x86_64/asm/ |
D | current.rs | 11 compiler_fence(core::sync::atomic::Ordering::SeqCst); in current_pcb() 13 compiler_fence(core::sync::atomic::Ordering::SeqCst); in current_pcb()
|
/DragonOS-0.1.5/kernel/src/ipc/ |
D | signal.rs | 88 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sys_kill() 97 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sys_kill() 139 compiler_fence(core::sync::atomic::Ordering::SeqCst); in signal_kill_proc_info() 142 compiler_fence(core::sync::atomic::Ordering::SeqCst); in signal_kill_proc_info() 178 compiler_fence(core::sync::atomic::Ordering::SeqCst); in signal_send_sig_info() 181 compiler_fence(core::sync::atomic::Ordering::SeqCst); in signal_send_sig_info() 269 compiler_fence(core::sync::atomic::Ordering::SeqCst); in __send_signal_locked() 292 compiler_fence(core::sync::atomic::Ordering::SeqCst); in __send_signal_locked() 310 compiler_fence(core::sync::atomic::Ordering::SeqCst); in complete_signal() 338 compiler_fence(core::sync::atomic::Ordering::SeqCst); in complete_signal() [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | core.rs | 4 sync::atomic::{AtomicUsize, Ordering}, 33 return INO.fetch_add(1, Ordering::SeqCst); in generate_inode_id()
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | fs.rs | 47 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp() argument
|