Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160637383
D31756.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
733 B
Referenced Files
None
Subscribers
None
D31756.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 27, 9:40 AM (15 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34394211
Default Alt Text
D31756.diff (733 B)
Attached To
Mode
D31756: sctp: Add macros to assert on inp info lock state
Attached
Detach File
Event Timeline
Log In to Comment