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

Macro Definition Documentation

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

Definition at line 6 of file barrier.h.

#define mb (   void)    barrier()

Definition at line 7 of file barrier.h.

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

Definition at line 4 of file barrier.h.

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

Definition at line 10 of file barrier.h.

#define rmb ( )    mb()

Definition at line 8 of file barrier.h.

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

Definition at line 11 of file barrier.h.

#define smp_mb ( )    barrier()

Definition at line 19 of file barrier.h.

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

Definition at line 22 of file barrier.h.

#define smp_rmb ( )    barrier()

Definition at line 20 of file barrier.h.

#define smp_wmb ( )    barrier()

Definition at line 21 of file barrier.h.

#define wmb ( )    mb()

Definition at line 9 of file barrier.h.