Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
barrier.h File Reference
#include <asm/cache.h>

Go to the source code of this file.

Macros

#define nop()   __asm__ __volatile__ ("nop;\n\t" : : )
 
#define mb()   barrier()
 
#define rmb()   barrier()
 
#define wmb()   barrier()
 
#define read_barrier_depends()   do { } while (0)
 
#define smp_mb()   mb()
 
#define smp_rmb()   rmb()
 
#define smp_wmb()   wmb()
 
#define set_mb(var, value)   do { var = value; mb(); } while (0)
 
#define smp_read_barrier_depends()   read_barrier_depends()
 

Macro Definition Documentation

#define mb (   void)    barrier()

Definition at line 35 of file barrier.h.

#define nop ( )    __asm__ __volatile__ ("nop;\n\t" : : )

Definition at line 13 of file barrier.h.

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

Definition at line 38 of file barrier.h.

#define rmb ( )    barrier()

Definition at line 36 of file barrier.h.

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

Definition at line 45 of file barrier.h.

#define smp_mb ( )    mb()

Definition at line 42 of file barrier.h.

#define smp_read_barrier_depends ( )    read_barrier_depends()

Definition at line 46 of file barrier.h.

#define smp_rmb ( )    rmb()

Definition at line 43 of file barrier.h.

#define smp_wmb ( )    wmb()

Definition at line 44 of file barrier.h.

#define wmb ( )    barrier()

Definition at line 37 of file barrier.h.