Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/common/
Datomic.h28 inline void atomic_add(atomic_t *ato, long val) in atomic_add() argument
31 : "=m"(ato->value) in atomic_add()
42 inline void atomic_sub(atomic_t *ato, long val) in atomic_sub() argument
45 : "=m"(ato->value) in atomic_sub()
55 void atomic_inc(atomic_t *ato) in atomic_inc() argument
58 : "=m"(ato->value) in atomic_inc()
59 : "m"(ato->value) in atomic_inc()
68 void atomic_dec(atomic_t *ato) in atomic_dec() argument
71 : "=m"(ato->value) in atomic_dec()
72 : "m"(ato->value) in atomic_dec()
[all …]
/DragonOS-0.1.8/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.8/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()