Go to the source code of this file.
|
#define | __ASM__MB |
|
#define | ____xchg(type, args...) __xchg ## type ## _local(args) |
|
#define | ____cmpxchg(type, args...) __cmpxchg ## type ## _local(args) |
|
#define | xchg_local(ptr, x) |
|
#define | cmpxchg_local(ptr, o, n) |
|
#define | cmpxchg64_local(ptr, o, n) |
|
#define | ____xchg(type, args...) __xchg ##type(args) |
|
#define | ____cmpxchg(type, args...) __cmpxchg ##type(args) |
|
#define | xchg(ptr, x) |
|
#define | cmpxchg(ptr, o, n) |
|
#define | cmpxchg64(ptr, o, n) |
|
#define | __HAVE_ARCH_CMPXCHG 1 |
|
#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 52 of file cmpxchg.h.
#define cmpxchg64 |
( |
|
ptr, |
|
|
|
o, |
|
|
|
n |
|
) |
| |
Value:({ \
BUILD_BUG_ON(
sizeof(*(
ptr)) != 8); \
cmpxchg((
ptr), (o), (
n)); \
})
Definition at line 60 of file cmpxchg.h.
#define cmpxchg64_local |
( |
|
ptr, |
|
|
|
o, |
|
|
|
n |
|
) |
| |
Value:({ \
BUILD_BUG_ON(
sizeof(*(
ptr)) != 8); \
cmpxchg_local((
ptr), (o), (
n)); \
})
Definition at line 29 of file cmpxchg.h.
#define cmpxchg_local |
( |
|
ptr, |
|
|
|
o, |
|
|
|
n |
|
) |
| |
Value:({ \
__typeof__(*(
ptr)) _o_ = (o); \
__typeof__(*(
ptr)) _n_ = (
n); \
(unsigned long)_n_, \
})
Definition at line 20 of file cmpxchg.h.
Value:({ \
__typeof__(*(
ptr)) _x_ = (
x); \
})
Definition at line 45 of file cmpxchg.h.
#define xchg_local |
( |
|
ptr, |
|
|
|
x |
|
) |
| |
Value:({ \
__typeof__(*(
ptr)) _x_ = (
x); \
(__typeof__(*(
ptr))) __xchg_local((
ptr), (
unsigned long)_x_, \
})
Definition at line 13 of file cmpxchg.h.