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

Go to the source code of this file.

Macros

#define read_barrier_depends()   do { } while(0)
 
#define smp_read_barrier_depends()   do { } while(0)
 
#define __sync()   do { } while(0)
 
#define __fast_iob()
 
#define fast_wmb()   __sync()
 
#define fast_rmb()   __sync()
 
#define fast_mb()   __sync()
 
#define fast_iob()
 
#define wmb()   fast_wmb()
 
#define rmb()   fast_rmb()
 
#define mb()   fast_mb()
 
#define iob()   fast_iob()
 
#define smp_mb()   barrier()
 
#define smp_rmb()   barrier()
 
#define smp_wmb()   barrier()
 
#define __WEAK_LLSC_MB   " \n"
 
#define set_mb(var, value)   do { var = value; smp_mb(); } while (0)
 
#define smp_llsc_mb()   __asm__ __volatile__(__WEAK_LLSC_MB : : :"memory")
 
#define smp_mb__before_llsc()   smp_llsc_mb()
 
#define nudge_writes()   mb()
 

Macro Definition Documentation

#define __fast_iob ( )
Value:
__asm__ __volatile__( \
".set push\n\t" \
".set noreorder\n\t" \
"lw $0,%0\n\t" \
"nop\n\t" \
".set pop" \
: /* no output */ \
: "m" (*(int *)CKSEG1) \
: "memory")

Definition at line 83 of file barrier.h.

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

Definition at line 80 of file barrier.h.

#define __WEAK_LLSC_MB   " \n"

Definition at line 163 of file barrier.h.

#define fast_iob ( )
Value:
do { \
__sync(); \
__fast_iob(); \
} while (0)

Definition at line 118 of file barrier.h.

#define fast_mb ( )    __sync()

Definition at line 104 of file barrier.h.

#define fast_rmb ( )    __sync()

Definition at line 103 of file barrier.h.

#define fast_wmb ( )    __sync()

Definition at line 102 of file barrier.h.

#define iob ( )    fast_iob()

Definition at line 140 of file barrier.h.

#define mb (   void)    fast_mb()

Definition at line 139 of file barrier.h.

#define nudge_writes ( )    mb()

Definition at line 180 of file barrier.h.

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

Definition at line 65 of file barrier.h.

#define rmb ( )    fast_rmb()

Definition at line 138 of file barrier.h.

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

Definition at line 166 of file barrier.h.

#define smp_llsc_mb ( )    __asm__ __volatile__(__WEAK_LLSC_MB : : :"memory")

Definition at line 169 of file barrier.h.

#define smp_mb ( )    barrier()

Definition at line 155 of file barrier.h.

#define smp_mb__before_llsc ( )    smp_llsc_mb()

Definition at line 179 of file barrier.h.

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

Definition at line 66 of file barrier.h.

#define smp_rmb ( )    barrier()

Definition at line 156 of file barrier.h.

#define smp_wmb ( )    barrier()

Definition at line 157 of file barrier.h.

#define wmb ( )    fast_wmb()

Definition at line 137 of file barrier.h.