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 nop()   asm volatile ("nop")
 
#define mb()   asm volatile ("": : :"memory")
 
#define rmb()   mb()
 
#define wmb()   asm volatile ("": : :"memory")
 
#define smp_mb()   barrier()
 
#define smp_rmb()   barrier()
 
#define smp_wmb()   barrier()
 
#define set_mb(var, value)   do { var = value; mb(); } while (0)
 
#define set_wmb(var, value)   do { var = value; wmb(); } while (0)
 
#define read_barrier_depends()   do {} while (0)
 
#define smp_read_barrier_depends()   do {} while (0)
 

Macro Definition Documentation

#define mb (   void)    asm volatile ("": : :"memory")

Definition at line 29 of file barrier.h.

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

Definition at line 19 of file barrier.h.

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

Definition at line 46 of file barrier.h.

#define rmb ( )    mb()

Definition at line 30 of file barrier.h.

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

Definition at line 43 of file barrier.h.

#define set_wmb (   var,
  value 
)    do { var = value; wmb(); } while (0)

Definition at line 44 of file barrier.h.

#define smp_mb ( )    barrier()

Definition at line 38 of file barrier.h.

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

Definition at line 47 of file barrier.h.

#define smp_rmb ( )    barrier()

Definition at line 39 of file barrier.h.

#define smp_wmb ( )    barrier()

Definition at line 40 of file barrier.h.

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

Definition at line 31 of file barrier.h.