Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | ATOMIC_INIT(i) { (i) } |
#define | atomic_read(v) (*(volatile int *)&(v)->counter) |
#define | atomic_set(v, i) (((v)->counter) = i) |
#define | ASM_DI "di" |
#define | atomic_dec_return(v) atomic_sub_return(1, (v)) |
#define | atomic_inc_return(v) atomic_add_return(1, (v)) |
#define | smp_mb__before_atomic_dec() barrier() |
#define | smp_mb__after_atomic_dec() barrier() |
#define | smp_mb__before_atomic_inc() barrier() |
#define | smp_mb__after_atomic_inc() barrier() |
#define atomic_dec_return | ( | v | ) | atomic_sub_return(1, (v)) |
#define atomic_inc_return | ( | v | ) | atomic_add_return(1, (v)) |