summaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2009-04-15 21:39:56 +0000
committerKip Macy <kmacy@FreeBSD.org>2009-04-15 21:39:56 +0000
commit82c33e73f2588fd9606a58e4a42564f9aa6c0956 (patch)
treeabc6371fa5b9870bd525d2f8b5c49c372815680d /sys/netinet/in_pcb.h
parent8f22a721c287fb830a839f05ea414ffb792d9761 (diff)
downloadsrc-test2-82c33e73f2588fd9606a58e4a42564f9aa6c0956.tar.gz
src-test2-82c33e73f2588fd9606a58e4a42564f9aa6c0956.zip
Notes
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index aada1265e0b9..f2bcde3dbba2 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -313,7 +313,10 @@ struct inpcbinfo {
#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_LOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock, RA_LOCKED)
+#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)
+#define INP_LOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock, RA_LOCKED)
#define INP_RLOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock, RA_RLOCKED)
#define INP_WLOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock, RA_WLOCKED)
#define INP_UNLOCK_ASSERT(inp) rw_assert(&(inp)->inp_lock, RA_UNLOCKED)