Go to the source code of this file.
|
| #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)) |
| |
| #define __HAVE_ARCH_CMPXCHG 1 |
| #define cmpxchg |
( |
|
ptr, |
|
|
|
o, |
|
|
|
n |
|
) |
| |
Value:({ \
__typeof__(*(
ptr)) _o_ = (o); \
__typeof__(*(
ptr)) _n_ = (
n); \
(
unsigned long)_n_,
sizeof(*(ptr))); \
})
Definition at line 75 of file cmpxchg.h.
| #define cmpxchg64_local |
( |
|
ptr, |
|
|
|
o, |
|
|
|
n |
|
) |
| __cmpxchg64_local_generic((ptr), (o), (n)) |
| #define cmpxchg_local |
( |
|
ptr, |
|
|
|
o, |
|
|
|
n |
|
) |
| |
| void __cmpxchg_called_with_bad_pointer |
( |
void |
| ) |
|
| unsigned long __cmpxchg_u32 |
( |
volatile unsigned int * |
m, |
|
|
unsigned int |
old, |
|
|
unsigned int |
new_ |
|
) |
| |
| unsigned long __cmpxchg_u64 |
( |
volatile unsigned long * |
ptr, |
|
|
unsigned long |
old, |
|
|
unsigned long |
new_ |
|
) |
| |
| void __xchg_called_with_bad_pointer |
( |
void |
| ) |
|