Add INP_UNLOCK() which will do whatever R/W unlock is required.
This commit is contained in:
parent
d797164a86
commit
5a1264335d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354478
@ -586,6 +586,7 @@ struct inpcblbgroup {
|
||||
#define INP_TRY_WLOCK(inp) rw_try_wlock(&(inp)->inp_lock)
|
||||
#define INP_RUNLOCK(inp) rw_runlock(&(inp)->inp_lock)
|
||||
#define INP_WUNLOCK(inp) rw_wunlock(&(inp)->inp_lock)
|
||||
#define INP_UNLOCK(inp) rw_unlock(&(inp)->inp_lock)
|
||||
#define INP_TRY_UPGRADE(inp) rw_try_upgrade(&(inp)->inp_lock)
|
||||
#define INP_DOWNGRADE(inp) rw_downgrade(&(inp)->inp_lock)
|
||||
#define INP_WLOCKED(inp) rw_wowned(&(inp)->inp_lock)
|
||||
|
Loading…
Reference in New Issue
Block a user