Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cmpxchg.h File Reference
#include <linux/types.h>
#include <linux/irqflags.h>
#include <asm-generic/cmpxchg-local.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)   cmpxchg_local((ptr), (o), (n))
 
#define cmpxchg64(ptr, o, n)   cmpxchg64_local((ptr), (o), (n))
 

Functions

void __xchg_called_with_bad_pointer (void)
 

Macro Definition Documentation

#define cmpxchg (   ptr,
  o,
  n 
)    cmpxchg_local((ptr), (o), (n))

Definition at line 95 of file cmpxchg.h.

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

Definition at line 96 of file cmpxchg.h.

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

Definition at line 82 of file cmpxchg.h.

Function Documentation

void __xchg_called_with_bad_pointer ( void  )