1#ifndef __LINUX_RWSEM_H__
2#define __LINUX_RWSEM_H__
10#define init_rwsem(rwsem) pthread_rwlock_init(&(rwsem)->lock, NULL)
12#define down_read(rwsem) pthread_rwlock_rdlock(&(rwsem)->lock)
14#define down_write(rwsem) pthread_rwlock_wrlock(&(rwsem)->lock)
16#define up_read(rwsem) pthread_rwlock_unlock(&(rwsem)->lock)
18#define up_write(rwsem) pthread_rwlock_unlock(&(rwsem)->lock)
POSIX Threads Private Support.