Go to the documentation of this file.
7 #ifndef _SPARC64_RWSEM_H
8 #define _SPARC64_RWSEM_H
10 #ifndef _LINUX_RWSEM_H
11 #error "please don't include asm/rwsem.h directly, use linux/rwsem.h instead"
16 #define RWSEM_UNLOCKED_VALUE 0x00000000L
17 #define RWSEM_ACTIVE_BIAS 0x00000001L
18 #define RWSEM_ACTIVE_MASK 0xffffffffL
19 #define RWSEM_WAITING_BIAS (-RWSEM_ACTIVE_MASK-1)
20 #define RWSEM_ACTIVE_READ_BIAS RWSEM_ACTIVE_BIAS
21 #define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
36 while ((tmp = sem->
count) >= 0L) {