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 mb()   __asm__ __volatile__ ("": : :"memory")
 
#define rmb()   mb()
 
#define wmb()   __asm__ __volatile__ ("": : :"memory")
 
#define ctrl_barrier()   __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop")
 
#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 { (void)xchg(&var, value); } while (0)
 

Macro Definition Documentation

#define ctrl_barrier ( )    __asm__ __volatile__ ("nop;nop;nop;nop;nop;nop;nop;nop")

Definition at line 36 of file barrier.h.

#define mb (   void)    __asm__ __volatile__ ("": : :"memory")

Definition at line 33 of file barrier.h.

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

Definition at line 37 of file barrier.h.

#define rmb ( )    mb()

Definition at line 34 of file barrier.h.

#define set_mb (   var,
  value 
)    do { (void)xchg(&var, value); } while (0)

Definition at line 52 of file barrier.h.

#define smp_mb ( )    barrier()

Definition at line 46 of file barrier.h.

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

Definition at line 49 of file barrier.h.

#define smp_rmb ( )    barrier()

Definition at line 47 of file barrier.h.

#define smp_wmb ( )    barrier()

Definition at line 48 of file barrier.h.

#define wmb ( )    __asm__ __volatile__ ("": : :"memory")

Definition at line 35 of file barrier.h.