23 #ifndef __MOTR_LIB_LINUX_KERNEL_ATOMIC64_H__ 24 #define __MOTR_LIB_LINUX_KERNEL_ATOMIC64_H__ 26 #include <asm/atomic.h> 49 return atomic64_read(&a->
a_value);
75 return atomic64_add_return(delta, &a->
a_value);
81 return atomic64_sub_return(delta, &a->
a_value);
86 return atomic64_inc_and_test(&a->
a_value);
91 return atomic64_dec_and_test(&a->
a_value);
96 return cmpxchg64(loc, old,
new) == old;
static void m0_atomic64_sub(struct m0_atomic64 *a, int64_t num)
static bool m0_atomic64_dec_and_test(struct m0_atomic64 *a)
static void m0_atomic64_add(struct m0_atomic64 *a, int64_t num)
static void m0_atomic64_inc(struct m0_atomic64 *a)
static int64_t m0_atomic64_sub_return(struct m0_atomic64 *a, int64_t delta)
static int64_t m0_atomic64_get(const struct m0_atomic64 *a)
static bool m0_atomic64_cas(int64_t *loc, int64_t old, int64_t new)
static int64_t m0_atomic64_add_return(struct m0_atomic64 *a, int64_t delta)
static bool m0_atomic64_inc_and_test(struct m0_atomic64 *a)
static void m0_atomic64_dec(struct m0_atomic64 *a)
static void m0_atomic64_set(struct m0_atomic64 *a, int64_t num)