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/compiler.h>

Go to the source code of this file.

Macros

#define mb()   __asm__ __volatile__("mb": : :"memory")
 
#define rmb()   __asm__ __volatile__("mb": : :"memory")
 
#define wmb()   __asm__ __volatile__("wmb": : :"memory")
 
#define read_barrier_depends()   __asm__ __volatile__("mb": : :"memory")
 
#define __ASM_SMP_MB
 
#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; mb(); } while (0)
 

Macro Definition Documentation

#define __ASM_SMP_MB

Definition at line 25 of file barrier.h.

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

Definition at line 6 of file barrier.h.

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

Definition at line 15 of file barrier.h.

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

Definition at line 9 of file barrier.h.

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

Definition at line 32 of file barrier.h.

#define smp_mb ( )    barrier()

Definition at line 26 of file barrier.h.

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

Definition at line 29 of file barrier.h.

#define smp_rmb ( )    barrier()

Definition at line 27 of file barrier.h.

#define smp_wmb ( )    barrier()

Definition at line 28 of file barrier.h.

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

Definition at line 12 of file barrier.h.