Implement down_write_killable() in the LinuxKPI.
MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
b3b75d9c84
commit
0bd68b774d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=316521
@ -47,6 +47,7 @@ struct rw_semaphore {
|
|||||||
#define up_read(_rw) sx_sunlock(&(_rw)->sx)
|
#define up_read(_rw) sx_sunlock(&(_rw)->sx)
|
||||||
#define down_read_trylock(_rw) !!sx_try_slock(&(_rw)->sx)
|
#define down_read_trylock(_rw) !!sx_try_slock(&(_rw)->sx)
|
||||||
#define down_write_trylock(_rw) !!sx_try_xlock(&(_rw)->sx)
|
#define down_write_trylock(_rw) !!sx_try_xlock(&(_rw)->sx)
|
||||||
|
#define down_write_killable(_rw) !!sx_xlock_sig(&(_rw)->sx)
|
||||||
#define downgrade_write(_rw) sx_downgrade(&(_rw)->sx)
|
#define downgrade_write(_rw) sx_downgrade(&(_rw)->sx)
|
||||||
#define down_read_nested(_rw, _sc) down_read(_rw)
|
#define down_read_nested(_rw, _sc) down_read(_rw)
|
||||||
#define init_rwsem(_rw) linux_init_rwsem(_rw, rwsem_name("lnxrwsem"))
|
#define init_rwsem(_rw) linux_init_rwsem(_rw, rwsem_name("lnxrwsem"))
|
||||||
|
Loading…
Reference in New Issue
Block a user