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 <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_u64   __cmpxchg_u64_unsupported_on_32bit_kernels
 
#define __HAVE_ARCH_CMPXCHG   1
 
#define cmpxchg(ptr, old, new)
 
#define cmpxchg_local(ptr, old, new)
 
#define cmpxchg64_local(ptr, o, n)   __cmpxchg64_local_generic((ptr), (o), (n))
 

Functions

void __xchg_called_with_bad_pointer (void)
 
unsigned long __cmpxchg_u64_unsupported_on_32bit_kernels (volatile int *m, unsigned long old, unsigned long new)
 
void __cmpxchg_called_with_bad_pointer (void)
 

Macro Definition Documentation

#define __cmpxchg_u64   __cmpxchg_u64_unsupported_on_32bit_kernels

Definition at line 67 of file cmpxchg.h.

#define __HAVE_ARCH_CMPXCHG   1

Definition at line 73 of file cmpxchg.h.

#define cmpxchg (   ptr,
  old,
  new 
)
Value:
((typeof(*(ptr)))__cmpxchg((ptr), (unsigned long)(old), \
(unsigned long)(new), \
sizeof(*(ptr))))

Definition at line 89 of file cmpxchg.h.

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

Definition at line 115 of file cmpxchg.h.

#define cmpxchg_local (   ptr,
  old,
  new 
)
Value:
((typeof(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(old), \
(unsigned long)(new), \
sizeof(*(ptr))))

Definition at line 110 of file cmpxchg.h.

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

Definition at line 17 of file cmpxchg.h.

Function Documentation

void __cmpxchg_called_with_bad_pointer ( void  )
unsigned long __cmpxchg_u64_unsupported_on_32bit_kernels ( volatile int m,
unsigned long  old,
unsigned long  new 
)
void __xchg_called_with_bad_pointer ( void  )