Searched refs:atomic (Results 1 – 10 of 10) sorted by relevance
/DragonOS-0.1.2/kernel/src/common/ |
D | atomic.h | 13 #define atomic_read(atomic) ((atomic)->value) // 读取原子变量 argument 14 #define atomic_set(atomic,val) (((atomic)->value) = (val)) // 设置原子变量的初始值 argument
|
/DragonOS-0.1.2/kernel/src/arch/x86_64/asm/ |
D | current.rs | 3 use core::{arch::asm, sync::atomic::compiler_fence}; 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.2/kernel/src/process/ |
D | fork.rs | 1 use core::{ffi::c_void, ptr::null_mut, sync::atomic::compiler_fence}; 15 atomic::atomic_set, 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.2/kernel/src/libs/ |
D | mod.rs | 6 pub mod atomic; module
|
D | refcount.rs | 3 use super::{ffi_convert::{FFIBind2Rust, __convert_mut, __convert_ref}, atomic::atomic_read};
|
/DragonOS-0.1.2/docs/kernel/core_api/ |
D | index.rst | 12 atomic
|
D | atomic.md | 5   DragonOS实现了原子变量,类型为atomic_t. 原子变量是基于具体体系结构的原子操作指令实现的。具体实现在`kernel/common/atomic.h`中。
|
/DragonOS-0.1.2/kernel/src/ipc/ |
D | signal.rs | 1 use core::{ffi::c_void, intrinsics::size_of, ptr::read_volatile, sync::atomic::compiler_fence}; 87 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sys_kill() 91 compiler_fence(core::sync::atomic::Ordering::SeqCst); in sys_kill() 124 compiler_fence(core::sync::atomic::Ordering::SeqCst); in signal_kill_proc_info() 127 compiler_fence(core::sync::atomic::Ordering::SeqCst); in signal_kill_proc_info() 163 compiler_fence(core::sync::atomic::Ordering::SeqCst); in signal_send_sig_info() 166 compiler_fence(core::sync::atomic::Ordering::SeqCst); in signal_send_sig_info() 255 compiler_fence(core::sync::atomic::Ordering::SeqCst); in __send_signal_locked() 263 compiler_fence(core::sync::atomic::Ordering::SeqCst); in __send_signal_locked() 281 compiler_fence(core::sync::atomic::Ordering::SeqCst); in complete_signal() [all …]
|
/DragonOS-0.1.2/docs/introduction/ |
D | features.md | 39 - [x] atomic原子变量
|
/DragonOS-0.1.2/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.0.md | 109 - atomic 原子变量
|