Home
last modified time | relevance | path

Searched refs:atomic_t (Results 1 – 12 of 12) sorted by relevance

/DragonOS-0.1.3/kernel/src/common/
Datomic.h19 } atomic_t; typedef
27 inline void atomic_add(atomic_t *ato, long val) in atomic_add()
41 inline void atomic_sub(atomic_t *ato, long val) in atomic_sub()
54 void atomic_inc(atomic_t *ato) in atomic_inc()
67 void atomic_dec(atomic_t *ato) in atomic_dec()
80 inline void atomic_set_mask(atomic_t *ato, long mask) in atomic_set_mask()
93 inline void atomic_clear_mask(atomic_t *ato, long mask) in atomic_clear_mask()
Dsemaphore.h23 atomic_t counter;
Dmutex.h19 atomic_t count; // 锁计数。1->已解锁。 0->已上锁,且有可能存在等待者
/DragonOS-0.1.3/kernel/src/libs/
Datomic.rs4 use crate::include::bindings::bindings::atomic_t;
8 pub fn atomic_read(ato: *const atomic_t) -> i64 { in atomic_read()
16 pub fn atomic_set(ato: *mut atomic_t, value:i64) { in atomic_set() argument
22 impl Default for atomic_t { implementation
Drefcount.rs1 use crate::{include::bindings::bindings::{atomic_inc, atomic_t, atomic_dec}, kwarn};
7 pub refs: atomic_t,
12 Self { refs: atomic_t { value: 1 }} in default()
34 refs: $crate::include::bindings::bindings::atomic_t { value: $x },
/DragonOS-0.1.3/docs/kernel/core_api/
Datomic.md5   DragonOS实现了原子变量,类型为atomic_t. 原子变量是基于具体体系结构的原子操作指令实现的。具体实现在`kernel/common/atomic.h`中。
11 ### `inline void atomic_add(atomic_t *ato, long val)`
27 ### `inline void atomic_sub(atomic_t *ato, long val)`
43 ### `void atomic_inc(atomic_t *ato)`
56 ### `void atomic_dec(atomic_t *ato)`
68 ### `inline void atomic_set_mask(atomic_t *ato, long mask)`
84 ### `inline void atomic_clear_mask(atomic_t *ato, long mask)`
/DragonOS-0.1.3/kernel/src/include/DragonOS/
Drefcount.h6 atomic_t refs;
Dsignal.h123 atomic_t sig_cnt;
/DragonOS-0.1.3/kernel/src/process/
Dinitial_proc.rs6 include::bindings::bindings::{atomic_t, process_control_block, spinlock_t},
15 sig_cnt: atomic_t { value: 0 },
/DragonOS-0.1.3/kernel/src/mm/
Dmm-types.h133 atomic_t ref_count; // 引用计数
175 atomic_t ref_count;
/DragonOS-0.1.3/docs/kernel/locking/
Dlocks.md62 atomic_t count; // 锁计数。1->已解锁。 0->已上锁,且有可能存在等待者
/DragonOS-0.1.3/kernel/src/ipc/
Dsignal_types.rs11 use crate::include::bindings::bindings::atomic_t;
42 pub sig_cnt: atomic_t,