Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cmpxchg_32.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 __HAVE_ARCH_CMPXCHG   1
 
#define cmpxchg(ptr, o, n)
 
#define cmpxchg_local(ptr, o, n)
 
#define cmpxchg64_local(ptr, o, n)   __cmpxchg64_local_generic((ptr), (o), (n))
 

Functions

void __xchg_called_with_bad_pointer (void)
 
void __cmpxchg_called_with_bad_pointer (void)
 
unsigned long __cmpxchg_u32 (volatile u32 *m, u32 old, u32 new_)
 

Macro Definition Documentation

#define __HAVE_ARCH_CMPXCHG   1

Definition at line 45 of file cmpxchg_32.h.

#define cmpxchg (   ptr,
  o,
  n 
)
Value:
({ \
__typeof__(*(ptr)) _o_ = (o); \
__typeof__(*(ptr)) _n_ = (n); \
(__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
(unsigned long)_n_, sizeof(*(ptr))); \
})

Definition at line 66 of file cmpxchg_32.h.

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

Definition at line 83 of file cmpxchg_32.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 80 of file cmpxchg_32.h.

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

Definition at line 35 of file cmpxchg_32.h.

Function Documentation

void __cmpxchg_called_with_bad_pointer ( void  )
unsigned long __cmpxchg_u32 ( volatile u32 m,
u32  old,
u32  new_ 
)

Definition at line 122 of file atomic32.c.

void __xchg_called_with_bad_pointer ( void  )