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

Macro Definition Documentation

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

Definition at line 17 of file barrier.h.

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

Definition at line 15 of file barrier.h.

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

Definition at line 20 of file barrier.h.

#define rmb ( )    asm volatile ("membar" : : :"memory")

Definition at line 18 of file barrier.h.

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

Definition at line 26 of file barrier.h.

#define smp_mb ( )    barrier()

Definition at line 22 of file barrier.h.

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

Definition at line 25 of file barrier.h.

#define smp_rmb ( )    barrier()

Definition at line 23 of file barrier.h.

#define smp_wmb ( )    barrier()

Definition at line 24 of file barrier.h.

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

Definition at line 19 of file barrier.h.