Home
last modified time | relevance | path

Searched refs:atomic (Results 1 – 10 of 10) sorted by relevance

/DragonOS-0.1.2/kernel/src/common/
Datomic.h13 #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/
Dcurrent.rs3 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/
Dfork.rs1 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/
Dmod.rs6 pub mod atomic; module
Drefcount.rs3 use super::{ffi_convert::{FFIBind2Rust, __convert_mut, __convert_ref}, atomic::atomic_read};
/DragonOS-0.1.2/docs/kernel/core_api/
Dindex.rst12 atomic
Datomic.md5   DragonOS实现了原子变量,类型为atomic_t. 原子变量是基于具体体系结构的原子操作指令实现的。具体实现在`kernel/common/atomic.h`中。
/DragonOS-0.1.2/kernel/src/ipc/
Dsignal.rs1 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/
Dfeatures.md39 - [x] atomic原子变量
/DragonOS-0.1.2/docs/community/ChangeLog/V0.1.x/
DV0.1.0.md109 - atomic 原子变量