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

Go to the source code of this file.

Data Structures

struct  __xchg_dummy
 

Macros

#define __xg(x)   ((struct __xchg_dummy *)(x))
 
#define xchg(ptr, v)
 
#define cmpxchg(ptr, o, n)
 
#define __HAVE_ARCH_CMPXCHG   1
 

Macro Definition Documentation

#define __HAVE_ARCH_CMPXCHG   1

Definition at line 45 of file cmpxchg.h.

#define __xg (   x)    ((struct __xchg_dummy *)(x))

Definition at line 7 of file cmpxchg.h.

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

Definition at line 40 of file cmpxchg.h.

#define xchg (   ptr,
  v 
)
Value:
((__typeof__(*(ptr))) __xchg((unsigned long *)(ptr), \
(unsigned long)(v)))

Definition at line 22 of file cmpxchg.h.