Current Path : /sys/amd64/compile/hs32/modules/usr/src/sys/modules/s3/@/amd64/compile/hs32/modules/usr/src/sys/modules/usb/usie/@/amd64/compile/hs32/modules/usr/src/sys/modules/i2c/controllers/alpm/@/amd64/compile/hs32/modules/usr/src/sys/modules/tx/@/gnu/fs/xfs/FreeBSD/support/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //sys/amd64/compile/hs32/modules/usr/src/sys/modules/s3/@/amd64/compile/hs32/modules/usr/src/sys/modules/usb/usie/@/amd64/compile/hs32/modules/usr/src/sys/modules/i2c/controllers/alpm/@/amd64/compile/hs32/modules/usr/src/sys/modules/tx/@/gnu/fs/xfs/FreeBSD/support/rwsem.h |
#ifndef __XFS_SUPPORT_RWSEM_H__ #define __XFS_SUPPORT_RWSEM_H__ #include <sys/param.h> #include <sys/lock.h> #include <sys/mutex.h> #include <sys/sx.h> #define rw_semaphore sx #define init_rwsem(sem) sx_init(sem, "rwsem") #define free_rwsem(sem) sx_destroy(sem) #define down_read(sem) sx_slock(sem) #define down_read_trylock(sem) sx_try_slock(sem) #define down_write(sem) sx_xlock(sem) #define down_write_trylock(sem) sx_try_xlock(sem) #define up_read(sem) sx_sunlock(sem) #define up_write(sem) sx_xunlock(sem) #define downgrade_write(sem) sx_downgrade(sem) #endif /* __XFS_SUPPORT_RWSEM_H__ */