Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161378589
D31756.id94443.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
760 B
Referenced Files
None
Subscribers
None
D31756.id94443.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D31756: sctp: Add macros to assert on inp info lock state
Attached
Detach File
Event Timeline
Log In to Comment