Page MenuHomeFreeBSD

D31756.id94443.diff
No OneTemporary

D31756.id94443.diff

Index: sys/netinet/sctp_lock_bsd.h
===================================================================
--- sys/netinet/sctp_lock_bsd.h
+++ 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
Sat, Jul 4, 6:42 AM (14 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34657252
Default Alt Text
D31756.id94443.diff (760 B)

Event Timeline