Page MenuHomeFreeBSD

D31756.1793733284.diff
No OneTemporary

Authored By
Unknown
Size
733 B
Referenced Files
None
Subscribers
None

D31756.1793733284.diff

diff --git a/sys/netinet/sctp_lock_bsd.h b/sys/netinet/sctp_lock_bsd.h
--- a/sys/netinet/sctp_lock_bsd.h
+++ b/sys/netinet/sctp_lock_bsd.h
@@ -107,6 +107,18 @@
rw_wunlock(&SCTP_BASE_INFO(ipi_ep_mtx)); \
} while (0)
+#define SCTP_INP_INFO_LOCK_ASSERT() do { \
+ rw_assert(&SCTP_BASE_INFO(ipi_ep_mtx), RA_LOCKED); \
+} while (0)
+
+#define SCTP_INP_INFO_RLOCK_ASSERT() do { \
+ rw_assert(&SCTP_BASE_INFO(ipi_ep_mtx), RA_RLOCKED); \
+} while (0)
+
+#define SCTP_INP_INFO_WLOCK_ASSERT() do { \
+ rw_assert(&SCTP_BASE_INFO(ipi_ep_mtx), RA_WLOCKED); \
+} while (0)
+
#define SCTP_MCORE_QLOCK_INIT(cpstr) do { \
mtx_init(&(cpstr)->que_mtx, "sctp-mcore_queue","queue_lock", \
MTX_DEF | MTX_DUPOK); \

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 3, 7:14 PM (5 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41381468
Default Alt Text
D31756.1793733284.diff (733 B)

Event Timeline