PATH:
usr
/
src
/
kernels
/
5.14.0-611.49.1.el9_7.x86_64
/
scripts
/
atomic
/
fallbacks
cat <<EOF static __always_inline bool arch_${atomic}_inc_unless_negative(${atomic}_t *v) { ${int} c = arch_${atomic}_read(v); do { if (unlikely(c < 0)) return false; } while (!arch_${atomic}_try_cmpxchg(v, &c, c + 1)); return true; } EOF
[-] sub_and_test
[edit]
[-] acquire
[edit]
[-] inc_unless_negative
[edit]
[-] try_cmpxchg
[edit]
[-] fetch_add_unless
[edit]
[-] dec_unless_positive
[edit]
[-] inc
[edit]
[-] fence
[edit]
[-] dec_and_test
[edit]
[-] set_release
[edit]
[-] inc_and_test
[edit]
[-] inc_not_zero
[edit]
[-] add_unless
[edit]
[-] add_negative
[edit]
[-] andnot
[edit]
[-] dec
[edit]
[+]
..
[-] release
[edit]
[-] dec_if_positive
[edit]
[-] read_acquire
[edit]