aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.h
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2008-03-24 20:24:04 +0000
committerKip Macy <kmacy@FreeBSD.org>2008-03-24 20:24:04 +0000
commite79dd20dd5b556b3d1813f1b24f3ed22149cbf7d (patch)
tree2240a490ffa6523ffe442be8803e462e80fe8931 /sys/netinet/in_pcb.h
parentb685f674de3ddb0b87e66feb628bbd5234169b10 (diff)
downloadsrc-e79dd20dd5b556b3d1813f1b24f3ed22149cbf7d.tar.gz
src-e79dd20dd5b556b3d1813f1b24f3ed22149cbf7d.zip
change inp_wlock_assert to inp_lock_assert
Notes
Notes: svn path=/head/; revision=177575
Diffstat (limited to 'sys/netinet/in_pcb.h')
-rw-r--r--sys/netinet/in_pcb.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 0227798f4b61..2bdfb4e1e200 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -281,6 +281,7 @@ struct inpcbinfo {
#define INP_LOCK_ASSERT(inp) mtx_assert(&(inp)->inp_mtx, MA_OWNED)
#define INP_UNLOCK_ASSERT(inp) mtx_assert(&(inp)->inp_mtx, MA_NOTOWNED)
+#ifdef _KERNEL
/*
* These locking functions are for inpcb consumers outside of sys/netinet,
* more specifically, they were added for the benefit of TOE drivers. The
@@ -292,19 +293,22 @@ void inp_rlock(struct inpcb *);
void inp_runlock(struct inpcb *);
#ifdef INVARIANTS
-void inp_wlock_assert(struct inpcb *);
-void inp_wunlock_assert(struct inpcb *);
+void inp_lock_assert(struct inpcb *);
+void inp_unlock_assert(struct inpcb *);
#else
static __inline void
-inp_wlock_assert(struct inpcb *inp __unused)
+inp_lock_assert(struct inpcb *inp __unused)
{
}
static __inline void
-inp_wunlock_assert(struct inpcb *inp __unused)
+inp_unlock_assert(struct inpcb *inp __unused)
{
}
+
#endif
+#endif /* _KERNEL */
+
#define INP_INFO_LOCK_INIT(ipi, d) \
mtx_init(&(ipi)->ipi_mtx, (d), NULL, MTX_DEF | MTX_RECURSE)