1 #ifndef _LINUXRWLOCKS_H
2 #define _LINUXRWLOCKS_H
10 #define RW_LOCK_BIAS 0x00100000
11 #define WRITE_LOCK_CMP RW_LOCK_BIAS
18 int read_can_lock(rwlock_t *lock);
20 int write_can_lock(rwlock_t *lock);
22 void read_lock(rwlock_t *rw);
24 void write_lock(rwlock_t *rw);
26 int read_trylock(rwlock_t *rw);
28 int write_trylock(rwlock_t *rw);
30 void read_unlock(rwlock_t *rw);
32 void write_unlock(rwlock_t *rw);