Home
last modified time | relevance | path

Searched refs:ato (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.2/kernel/src/common/
Datomic.h27 inline void atomic_add(atomic_t *ato, long val) in atomic_add() argument
30 : "=m"(ato->value) in atomic_add()
41 inline void atomic_sub(atomic_t *ato, long val) in atomic_sub() argument
44 : "=m"(ato->value) in atomic_sub()
54 void atomic_inc(atomic_t *ato) in atomic_inc() argument
57 : "=m"(ato->value) in atomic_inc()
58 : "m"(ato->value) in atomic_inc()
67 void atomic_dec(atomic_t *ato) in atomic_dec() argument
70 : "=m"(ato->value) in atomic_dec()
71 : "m"(ato->value) in atomic_dec()
[all …]
/DragonOS-0.1.2/docs/kernel/core_api/
Datomic.md11 ### `inline void atomic_add(atomic_t *ato, long val)`
19 **ato**
27 ### `inline void atomic_sub(atomic_t *ato, long val)`
35 **ato**
43 ### `void atomic_inc(atomic_t *ato)`
51 **ato**
56 ### `void atomic_dec(atomic_t *ato)`
64 **ato**
68 ### `inline void atomic_set_mask(atomic_t *ato, long mask)`
76 **ato**
[all …]
/DragonOS-0.1.2/kernel/src/libs/
Datomic.rs8 pub fn atomic_read(ato: *const atomic_t) -> i64 { in atomic_read()
10 return read_volatile(&(*ato).value); in atomic_read()
16 pub fn atomic_set(ato: *mut atomic_t, value:i64) { in atomic_set()
18 write_volatile(&mut (*ato).value, value); in atomic_set()