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

Go to the source code of this file.

Macros

#define xchg(ptr, x)   ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
 
#define cmpxchg(ptr, o, n)
 
#define cmpxchg_local(ptr, o, n)
 

Macro Definition Documentation

#define cmpxchg (   ptr,
  o,
  n 
)
Value:
((__typeof__(*(ptr)))__cmpxchg_mb((ptr), \
(unsigned long)(o), \
(unsigned long)(n), \
sizeof(*(ptr))))

Definition at line 161 of file cmpxchg.h.

#define cmpxchg_local (   ptr,
  o,
  n 
)
Value:
((__typeof__(*(ptr)))__cmpxchg((ptr), \
(unsigned long)(o), \
(unsigned long)(n), \
sizeof(*(ptr))))

Definition at line 167 of file cmpxchg.h.

#define xchg (   ptr,
  x 
)    ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))

Definition at line 73 of file cmpxchg.h.