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 <asm/irqflags.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)
 

Macro Definition Documentation

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

Definition at line 72 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 110 of file cmpxchg.h.

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

Definition at line 106 of file cmpxchg.h.