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/irqflags.h>
#include <asm-generic/cmpxchg-local.h>
#include <asm-generic/cmpxchg.h>

Go to the source code of this file.

Macros

#define xchg(ptr, x)
 
#define tas(ptr)   xchg((ptr), 1)
 
#define cmpxchg_local(ptr, o, n)
 
#define cmpxchg64_local(ptr, o, n)   __cmpxchg64_local_generic((ptr), (o), (n))
 

Macro Definition Documentation

#define cmpxchg64_local (   ptr,
  o,
  n 
)    __cmpxchg64_local_generic((ptr), (o), (n))

Definition at line 64 of file cmpxchg.h.

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

Definition at line 59 of file cmpxchg.h.

#define tas (   ptr)    xchg((ptr), 1)

Definition at line 50 of file cmpxchg.h.

#define xchg (   ptr,
  x 
)
Value:
((__typeof__(*(ptr)))__xchg((unsigned int)(x), (void *) (ptr), \
sizeof(*(ptr))))

Definition at line 47 of file cmpxchg.h.