Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
barrier.h File Reference

Go to the source code of this file.

Macros

#define sev()   asm volatile("sev" : : : "memory")
 
#define wfe()   asm volatile("wfe" : : : "memory")
 
#define wfi()   asm volatile("wfi" : : : "memory")
 
#define isb()   asm volatile("isb" : : : "memory")
 
#define dsb()   asm volatile("dsb sy" : : : "memory")
 
#define mb()   dsb()
 
#define rmb()   asm volatile("dsb ld" : : : "memory")
 
#define wmb()   asm volatile("dsb st" : : : "memory")
 
#define smp_mb()   barrier()
 
#define smp_rmb()   barrier()
 
#define smp_wmb()   barrier()
 
#define read_barrier_depends()   do { } while(0)
 
#define smp_read_barrier_depends()   do { } while(0)
 
#define set_mb(var, value)   do { var = value; smp_mb(); } while (0)
 
#define nop()   asm volatile("nop");
 

Macro Definition Documentation

#define dsb ( )    asm volatile("dsb sy" : : : "memory")

Definition at line 28 of file barrier.h.

#define isb ( )    asm volatile("isb" : : : "memory")

Definition at line 27 of file barrier.h.

#define mb (   void)    dsb()

Definition at line 30 of file barrier.h.

#define nop ( )    asm volatile("nop");

Definition at line 48 of file barrier.h.

#define read_barrier_depends ( )    do { } while(0)

Definition at line 44 of file barrier.h.

#define rmb ( )    asm volatile("dsb ld" : : : "memory")

Definition at line 31 of file barrier.h.

#define set_mb (   var,
  value 
)    do { var = value; smp_mb(); } while (0)

Definition at line 47 of file barrier.h.

#define sev ( )    asm volatile("sev" : : : "memory")

Definition at line 23 of file barrier.h.

#define smp_mb ( )    barrier()

Definition at line 35 of file barrier.h.

#define smp_read_barrier_depends ( )    do { } while(0)

Definition at line 45 of file barrier.h.

#define smp_rmb ( )    barrier()

Definition at line 36 of file barrier.h.

#define smp_wmb ( )    barrier()

Definition at line 37 of file barrier.h.

#define wfe ( )    asm volatile("wfe" : : : "memory")

Definition at line 24 of file barrier.h.

#define wfi ( )    asm volatile("wfi" : : : "memory")

Definition at line 25 of file barrier.h.

#define wmb ( )    asm volatile("dsb st" : : : "memory")

Definition at line 32 of file barrier.h.