Searched refs:atomic_t (Results 1 – 12 of 12) sorted by relevance
/DragonOS-0.1.7/kernel/src/common/ |
D | atomic.h | 19 } 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()
|
D | semaphore.h | 23 atomic_t counter;
|
D | mutex.h | 19 atomic_t count; // 锁计数。1->已解锁。 0->已上锁,且有可能存在等待者
|
/DragonOS-0.1.7/docs/kernel/core_api/ |
D | atomic.md | 5   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.7/kernel/src/libs/ |
D | atomic.rs | 4 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
|
D | refcount.rs | 2 include::bindings::bindings::{atomic_dec, atomic_inc, atomic_t}, 13 pub refs: atomic_t, 19 refs: atomic_t { value: 1 }, in default() 42 refs: $crate::include::bindings::bindings::atomic_t { value: $x },
|
/DragonOS-0.1.7/kernel/src/include/DragonOS/ |
D | refcount.h | 6 atomic_t refs;
|
D | signal.h | 123 atomic_t sig_cnt;
|
/DragonOS-0.1.7/kernel/src/process/ |
D | initial_proc.rs | 6 include::bindings::bindings::{atomic_t, process_control_block, spinlock_t}, 15 sig_cnt: atomic_t { value: 0 },
|
/DragonOS-0.1.7/kernel/src/mm/ |
D | mm-types.h | 133 atomic_t ref_count; // 引用计数 175 atomic_t ref_count;
|
/DragonOS-0.1.7/docs/kernel/locking/ |
D | mutex.md | 135 atomic_t count; // 锁计数。1->已解锁。 0->已上锁,且有可能存在等待者
|
/DragonOS-0.1.7/kernel/src/ipc/ |
D | signal_types.rs | 12 use crate::include::bindings::bindings::atomic_t; 43 pub sig_cnt: atomic_t,
|