Linux Kernel
3.7.1
|
#include <asm/intrinsics.h>
Go to the source code of this file.
Macros | |
#define | RWSEM_UNLOCKED_VALUE __IA64_UL_CONST(0x0000000000000000) |
#define | RWSEM_ACTIVE_BIAS (1L) |
#define | RWSEM_ACTIVE_MASK (0xffffffffL) |
#define | RWSEM_WAITING_BIAS (-0x100000000L) |
#define | RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS |
#define | RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) |
#define | rwsem_atomic_add(delta, sem) atomic64_add(delta, (atomic64_t *)(&(sem)->count)) |
#define | rwsem_atomic_update(delta, sem) atomic64_add_return(delta, (atomic64_t *)(&(sem)->count)) |
#define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS |
#define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS) |
#define rwsem_atomic_add | ( | delta, | |
sem | |||
) | atomic64_add(delta, (atomic64_t *)(&(sem)->count)) |
#define rwsem_atomic_update | ( | delta, | |
sem | |||
) | atomic64_add_return(delta, (atomic64_t *)(&(sem)->count)) |
#define RWSEM_UNLOCKED_VALUE __IA64_UL_CONST(0x0000000000000000) |