summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-12-05 22:07:14 +0000
committerrwatson <rwatson@FreeBSD.org>2004-12-05 22:07:14 +0000
commitf2988d54dee0ffdc5f894558569060c50692848d (patch)
treed2046eb604c16288062b1777587b7605b608b886 /sys/netinet/in_pcb.h
parentfcf141e6aa5516034183c5d2ce9753fabf0e2a39 (diff)
downloadFreeBSD-src-f2988d54dee0ffdc5f894558569060c50692848d.zip
FreeBSD-src-f2988d54dee0ffdc5f894558569060c50692848d.tar.gz
Define INP_UNLOCK_ASSERT() to assert that an inpcb is unlocked.
MFC after: 2 weeks
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 2f66e87..2e8228e 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -247,6 +247,7 @@ struct inpcbinfo { /* XXX documentation, prefixes */
mtx_assert(&(inp)->inp_mtx, MA_OWNED); \
NET_ASSERT_GIANT(); \
} while (0)
+#define INP_UNLOCK_ASSERT(inp) mtx_assert(&(inp)->inp_mtx, MA_NOTOWNED)
#define INP_INFO_LOCK_INIT(ipi, d) \
mtx_init(&(ipi)->ipi_mtx, (d), NULL, MTX_DEF | MTX_RECURSE)
OpenPOWER on IntegriCloud