Lines Matching full:sd_lock

172  *	2. open/close/push/pop monitor: sd_lock is held while each
181 * sd_lock while trying to get data from the stream
185 * when new data arrives in strrput(), sd_lock is acquired
189 * 4. ioctl monitor: sd_lock is gotten to ensure that only one
223 mutex_enter(&stp->sd_lock); in push_mod()
228 mutex_exit(&stp->sd_lock); in push_mod()
277 mutex_exit(&strmatep->sd_lock); in stropen()
280 mutex_exit(&stp->sd_lock); in stropen()
282 &strmatep->sd_lock)) { in stropen()
284 mutex_exit(&strmatep->sd_lock); in stropen()
285 mutex_enter(&stp->sd_lock); in stropen()
288 mutex_exit(&strmatep->sd_lock); in stropen()
294 mutex_exit(&strmatep->sd_lock); in stropen()
297 mutex_exit(&strmatep->sd_lock); in stropen()
299 &stp->sd_lock)) { in stropen()
303 mutex_exit(&stp->sd_lock); in stropen()
309 mutex_exit(&strmatep->sd_lock); in stropen()
316 mutex_enter(&stp->sd_lock); in stropen()
323 &stp->sd_lock)) { in stropen()
327 mutex_exit(&stp->sd_lock); in stropen()
337 mutex_exit(&stp->sd_lock); in stropen()
354 mutex_enter(&stp->sd_lock); in stropen()
360 mutex_exit(&stp->sd_lock); in stropen()
422 mutex_enter(&stp->sd_lock); in stropen()
447 mutex_enter(&stp->sd_lock); in stropen()
449 mutex_exit(&stp->sd_lock); in stropen()
554 mutex_enter(&stp->sd_lock); in stropen()
556 mutex_exit(&stp->sd_lock); in stropen()
562 mutex_enter(&stp->sd_lock); in stropen()
590 mutex_exit(&stp->sd_lock); in stropen()
632 mutex_enter(&stp->sd_lock); in strclose()
634 mutex_exit(&stp->sd_lock); in strclose()
656 mutex_exit(&strmatep->sd_lock); in strclose()
657 cv_wait(&stp->sd_monitor, &stp->sd_lock); in strclose()
658 mutex_exit(&stp->sd_lock); in strclose()
664 mutex_exit(&stp->sd_lock); in strclose()
666 &strmatep->sd_lock); in strclose()
667 mutex_exit(&strmatep->sd_lock); in strclose()
675 mutex_enter(&stp->sd_lock); in strclose()
677 mutex_exit(&stp->sd_lock); in strclose()
698 * Holding sd_lock prevents q_next from changing in in strclose()
701 mutex_enter(&stp->sd_lock); in strclose()
719 if (str_cv_wait(&qp->q_wait, &stp->sd_lock, in strclose()
726 mutex_exit(&stp->sd_lock); in strclose()
808 mutex_enter(&stp->sd_lock); in strclose()
813 mutex_exit(&stp->sd_lock); in strclose()
904 mutex_enter(&stp->sd_lock); in strclean()
929 mutex_exit(&stp->sd_lock); in strclean()
945 mutex_enter(&stp->sd_lock); in strcleanall()
957 mutex_exit(&stp->sd_lock); in strcleanall()
975 /* Holding sd_lock prevents the read queue from changing */ in strget()
976 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strget()
1001 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strget()
1004 * Note: rwnext will drop sd_lock. in strget()
1007 ASSERT(MUTEX_NOT_HELD(&stp->sd_lock)); in strget()
1008 mutex_enter(&stp->sd_lock); in strget()
1022 mutex_exit(&stp->sd_lock); in strget()
1024 mutex_enter(&stp->sd_lock); in strget()
1027 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strget()
1031 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strget()
1050 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strget()
1059 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strget()
1169 mutex_enter(&stp->sd_lock); in strread()
1172 mutex_exit(&stp->sd_lock); in strread()
1179 mutex_exit(&stp->sd_lock); in strread()
1191 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strread()
1199 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strread()
1243 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strread()
1271 mutex_exit(&stp->sd_lock); in strread()
1293 mutex_enter(&stp->sd_lock); in strread()
1295 mutex_exit(&stp->sd_lock); in strread()
1309 mutex_enter(&stp->sd_lock); in strread()
1338 * (STRATMARK) before we dropped sd_lock above in strread()
1373 * sd_lock is held so the content of the in strread()
1378 mutex_exit(&stp->sd_lock); in strread()
1382 mutex_enter(&stp->sd_lock); in strread()
1395 mutex_enter(&stp->sd_lock); in strread()
1421 mutex_enter(&stp->sd_lock); in strread()
1423 mutex_exit(&stp->sd_lock); in strread()
1442 mutex_enter(&stp->sd_lock); in strread()
1444 mutex_exit(&stp->sd_lock); in strread()
1460 mutex_enter(&stp->sd_lock); in strread()
1462 mutex_exit(&stp->sd_lock); in strread()
1476 mutex_enter(&stp->sd_lock); in strread()
1479 mutex_exit(&stp->sd_lock); in strread()
1561 * SR_POLLIN. That flag has to be checked under sd_lock since it in strrput()
1596 mutex_enter(&stp->sd_lock); in strrput()
1627 mutex_exit(&stp->sd_lock); in strrput()
1644 mutex_enter(&stp->sd_lock); in strrput()
1715 mutex_enter(&stp->sd_lock); in strrput()
1733 mutex_enter(&stp->sd_lock); in strrput()
1746 mutex_enter(&stp->sd_lock); in strrput()
1749 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strrput()
1776 mutex_exit(&stp->sd_lock); in strrput()
1815 mutex_exit(&stp->sd_lock); in strrput()
1817 mutex_enter(&stp->sd_lock); in strrput()
1821 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strrput()
1842 * read when sd_lock was held and SR_POLLIN is changed in strrput()
1843 * by strpoll() under sd_lock. in strrput()
1849 mutex_exit(&stp->sd_lock); in strrput()
1851 mutex_enter(&stp->sd_lock); in strrput()
1861 mutex_exit(&stp->sd_lock); in strrput()
1876 mutex_enter(&stp->sd_lock); in strrput()
1959 mutex_enter(&stp->sd_lock); in strrput_nondata()
1991 mutex_exit(&stp->sd_lock); in strrput_nondata()
1993 mutex_enter(&stp->sd_lock); in strrput_nondata()
1999 mutex_exit(&stp->sd_lock); in strrput_nondata()
2024 mutex_exit(&stp->sd_lock); in strrput_nondata()
2028 mutex_enter(&stp->sd_lock); in strrput_nondata()
2039 mutex_exit(&stp->sd_lock); in strrput_nondata()
2041 mutex_enter(&stp->sd_lock); in strrput_nondata()
2047 mutex_exit(&stp->sd_lock); in strrput_nondata()
2075 mutex_enter(&stp->sd_lock); in strrput_nondata()
2098 mutex_exit(&stp->sd_lock); in strrput_nondata()
2103 mutex_enter(&stp->sd_lock); in strrput_nondata()
2106 mutex_exit(&stp->sd_lock); in strrput_nondata()
2121 mutex_enter(&stp->sd_lock); in strrput_nondata()
2125 mutex_exit(&stp->sd_lock); in strrput_nondata()
2128 mutex_exit(&stp->sd_lock); in strrput_nondata()
2145 mutex_enter(&stp->sd_lock); in strrput_nondata()
2150 mutex_exit(&stp->sd_lock); in strrput_nondata()
2152 mutex_exit(&stp->sd_lock); in strrput_nondata()
2170 mutex_enter(&stp->sd_lock); in strrput_nondata()
2183 mutex_exit(&stp->sd_lock); in strrput_nondata()
2210 mutex_enter(&stp->sd_lock); in strrput_nondata()
2226 mutex_exit(&stp->sd_lock); in strrput_nondata()
2235 mutex_exit(&stp->sd_lock); in strrput_nondata()
2248 mutex_enter(&stp->sd_lock); in strrput_nondata()
2259 mutex_exit(&stp->sd_lock); in strrput_nondata()
2269 mutex_exit(&stp->sd_lock); in strrput_nondata()
2281 mutex_enter(&stp->sd_lock); in strrput_nondata()
2415 mutex_exit(&stp->sd_lock); in strrput_nondata()
2446 mutex_enter(&stp->sd_lock); in strrput_nondata()
2461 mutex_exit(&stp->sd_lock); in strrput_nondata()
2464 mutex_exit(&stp->sd_lock); in strrput_nondata()
2501 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strwriteable()
2528 * Caller should *not* hold sd_lock.
2530 * under sd_lock in order to avoid missing a backenabling wakeup.
2552 ASSERT(MUTEX_NOT_HELD(&stp->sd_lock)); in strput()
2741 mutex_enter(&stp->sd_lock); in strwrite_common()
2744 mutex_exit(&stp->sd_lock); in strwrite_common()
2751 mutex_exit(&stp->sd_lock); in strwrite_common()
2756 mutex_exit(&stp->sd_lock); in strwrite_common()
2834 mutex_enter(&stp->sd_lock); in strwrite_common()
2837 * Needed since strput did not hold sd_lock across in strwrite_common()
2842 mutex_exit(&stp->sd_lock); in strwrite_common()
2849 mutex_exit(&stp->sd_lock); in strwrite_common()
2859 mutex_exit(&stp->sd_lock); in strwrite_common()
2862 mutex_exit(&stp->sd_lock); in strwrite_common()
2871 mutex_enter(&stp->sd_lock); in strwrite_common()
2873 mutex_exit(&stp->sd_lock); in strwrite_common()
2916 mutex_enter(&stp->sd_lock); in strwsrv()
2923 mutex_exit(&stp->sd_lock); in strwsrv()
2952 mutex_enter(&stp->sd_lock); in strwsrv()
2955 mutex_exit(&stp->sd_lock); in strwsrv()
2989 mutex_enter(&stp->sd_lock); in strwsrv()
2993 mutex_exit(&stp->sd_lock); in strwsrv()
3239 mutex_enter(&stp->sd_lock); in strioctl()
3241 mutex_exit(&stp->sd_lock); in strioctl()
3244 mutex_exit(&stp->sd_lock); in strioctl()
3266 mutex_enter(&stp->sd_lock); in strioctl()
3281 mutex_exit(&stp->sd_lock); in strioctl()
3291 mutex_exit(&stp->sd_lock); in strioctl()
3297 mutex_exit(&stp->sd_lock); in strioctl()
3386 mutex_enter(&stp->sd_lock); in strioctl()
3391 mutex_exit(&stp->sd_lock); in strioctl()
3395 mutex_exit(&stp->sd_lock); in strioctl()
3529 mutex_enter(&stp->sd_lock); in strioctl()
3532 mutex_exit(&stp->sd_lock); in strioctl()
3535 mutex_exit(&stp->sd_lock); in strioctl()
3583 mutex_enter(&stp->sd_lock); in strioctl()
3585 mutex_exit(&stp->sd_lock); in strioctl()
3589 mutex_exit(&stp->sd_lock); in strioctl()
3797 mutex_enter(&stp->sd_lock); in strioctl()
3801 mutex_exit(&stp->sd_lock); in strioctl()
3804 mutex_exit(&stp->sd_lock); in strioctl()
3823 mutex_enter(&stp->sd_lock); in strioctl()
3852 mutex_exit(&stp->sd_lock); in strioctl()
3877 mutex_enter(&stp->sd_lock); in strioctl()
3886 mutex_exit(&stp->sd_lock); in strioctl()
3892 mutex_exit(&stp->sd_lock); in strioctl()
3904 mutex_enter(&stp->sd_lock); in strioctl()
3938 mutex_exit(&stp->sd_lock); in strioctl()
4076 mutex_enter(&stp->sd_lock); in strioctl()
4081 mutex_exit(&stp->sd_lock); in strioctl()
4095 mutex_exit(&stp->sd_lock); in strioctl()
4100 mutex_exit(&stp->sd_lock); in strioctl()
4118 mutex_enter(&stp->sd_lock); in strioctl()
4120 mutex_exit(&stp->sd_lock); in strioctl()
4124 mutex_enter(&stp->sd_lock); in strioctl()
4163 mutex_exit(&stp->sd_lock); in strioctl()
4232 mutex_enter(&stp->sd_lock); in strioctl()
4234 mutex_exit(&stp->sd_lock); in strioctl()
4246 mutex_enter(&stp->sd_lock); in strioctl()
4248 mutex_exit(&stp->sd_lock); in strioctl()
4257 mutex_enter(&stp->sd_lock); in strioctl()
4304 mutex_exit(&stp->sd_lock); in strioctl()
4315 mutex_enter(&stp->sd_lock); in strioctl()
4318 mutex_exit(&stp->sd_lock); in strioctl()
4324 mutex_exit(&stp->sd_lock); in strioctl()
4329 mutex_exit(&stp->sd_lock); in strioctl()
4501 mutex_enter(&stp->sd_lock); in strioctl()
4531 mutex_exit(&stp->sd_lock); in strioctl()
4563 mutex_enter(&stp->sd_lock); in strioctl()
4580 mutex_exit(&stp->sd_lock); in strioctl()
4612 * Hold sd_lock to prevent traversal of sd_siglist while in strioctl()
4615 mutex_enter(&stp->sd_lock); in strioctl()
4623 mutex_exit(&stp->sd_lock); in strioctl()
4627 mutex_exit(&stp->sd_lock); in strioctl()
4667 mutex_exit(&stp->sd_lock); in strioctl()
4678 mutex_exit(&stp->sd_lock); in strioctl()
4692 mutex_enter(&stp->sd_lock); in strioctl()
4697 mutex_exit(&stp->sd_lock); in strioctl()
4700 mutex_exit(&stp->sd_lock); in strioctl()
4760 * Hold sd_lock to prevent traversal of sd_siglist while in strioctl()
4763 mutex_enter(&stp->sd_lock); in strioctl()
4772 mutex_exit(&stp->sd_lock); in strioctl()
4780 mutex_exit(&stp->sd_lock); in strioctl()
4823 mutex_exit(&stp->sd_lock); in strioctl()
4837 mutex_exit(&stp->sd_lock); in strioctl()
4881 mutex_enter(&stp->sd_lock); in strioctl()
4888 mutex_exit(&stp->sd_lock); in strioctl()
4894 mutex_exit(&stp->sd_lock); in strioctl()
5143 mutex_enter(&resstp->sd_lock); in strioctl()
5148 mutex_exit(&resstp->sd_lock); in strioctl()
5153 mutex_exit(&resstp->sd_lock); in strioctl()
5221 mutex_enter(&stp->sd_lock); in strioctl()
5226 mutex_exit(&stp->sd_lock); in strioctl()
5231 mutex_exit(&stp->sd_lock); in strioctl()
5237 mutex_exit(&stp->sd_lock); in strioctl()
5304 mutex_enter(&stp->sd_lock); in strioctl()
5307 mutex_exit(&stp->sd_lock); in strioctl()
5312 mutex_exit(&stp->sd_lock); in strioctl()
5316 mutex_exit(&stp->sd_lock); in strioctl()
5322 mutex_exit(&stp->sd_lock); in strioctl()
5325 mutex_exit(&stp->sd_lock); in strioctl()
5329 mutex_enter(&stp->sd_lock); in strioctl()
5331 mutex_exit(&stp->sd_lock); in strioctl()
5341 mutex_enter(&stp->sd_lock); in strioctl()
5343 mutex_exit(&stp->sd_lock); in strioctl()
5375 mutex_enter(&stp->sd_lock); in strioctl()
5377 mutex_exit(&stp->sd_lock); in strioctl()
5410 mutex_enter(&stp->sd_lock); in strioctl()
5416 mutex_exit(&stp->sd_lock); in strioctl()
5539 mutex_enter(&stp->sd_lock); in strioctl()
5556 mutex_exit(&stp->sd_lock); in strioctl()
5599 mutex_enter(&stp->sd_lock); in strioctl()
5601 mutex_exit(&stp->sd_lock); in strioctl()
5605 mutex_exit(&stp->sd_lock); in strioctl()
5619 mutex_enter(&stp->sd_lock); in strioctl()
5623 mutex_exit(&stp->sd_lock); in strioctl()
5628 mutex_exit(&stp->sd_lock); in strioctl()
5633 mutex_exit(&stp->sd_lock); in strioctl()
5639 mutex_exit(&stp->sd_lock); in strioctl()
5651 mutex_exit(&stp->sd_lock); in strioctl()
5659 mutex_enter(&stp->sd_lock); in strioctl()
5661 mutex_exit(&stp->sd_lock); in strioctl()
5665 mutex_exit(&stp->sd_lock); in strioctl()
5946 mutex_enter(&stp->sd_lock); in strdoioctl()
5948 mutex_exit(&stp->sd_lock); in strdoioctl()
5970 mutex_enter(&stp->sd_lock); in strdoioctl()
5978 cv_rval = str_cv_wait(&stp->sd_iocmonitor, &stp->sd_lock, in strdoioctl()
6014 mutex_exit(&stp->sd_lock); in strdoioctl()
6046 mutex_exit(&stp->sd_lock); in strdoioctl()
6064 mutex_enter(&stp->sd_lock); in strdoioctl()
6080 mutex_exit(&stp->sd_lock); in strdoioctl()
6091 cv_rval = str_cv_wait(&stp->sd_monitor, &stp->sd_lock, in strdoioctl()
6132 mutex_exit(&stp->sd_lock); in strdoioctl()
6146 mutex_enter(&stp->sd_lock); in strdoioctl()
6153 mutex_exit(&stp->sd_lock); in strdoioctl()
6173 mutex_exit(&stp->sd_lock); in strdoioctl()
6180 mutex_exit(&stp->sd_lock); in strdoioctl()
6272 mutex_enter(&stp->sd_lock); in strdoioctl()
6275 mutex_exit(&stp->sd_lock); in strdoioctl()
6316 mutex_enter(&stp->sd_lock); in strdoioctl()
6319 mutex_exit(&stp->sd_lock); in strdoioctl()
6327 mutex_enter(&stp->sd_lock); in strdoioctl()
6330 mutex_exit(&stp->sd_lock); in strdoioctl()
6400 mutex_enter(&stp->sd_lock); in strdocmd()
6402 mutex_exit(&stp->sd_lock); in strdocmd()
6408 mutex_exit(&stp->sd_lock); in strdocmd()
6418 mutex_enter(&stp->sd_lock); in strdocmd()
6425 rval = str_cv_wait(&stp->sd_monitor, &stp->sd_lock, timeout, 0); in strdocmd()
6443 mutex_exit(&stp->sd_lock); in strdocmd()
6470 mutex_exit(&stp->sd_lock); in strdocmd()
6536 mutex_enter(&stp->sd_lock); in strgetmsg()
6539 mutex_exit(&stp->sd_lock); in strgetmsg()
6546 mutex_exit(&stp->sd_lock); in strgetmsg()
6550 mutex_exit(&stp->sd_lock); in strgetmsg()
6580 mutex_enter(&stp->sd_lock); in strgetmsg()
6613 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strgetmsg()
6669 mutex_exit(&stp->sd_lock); in strgetmsg()
6680 mutex_exit(&stp->sd_lock); in strgetmsg()
6686 mutex_exit(&stp->sd_lock); in strgetmsg()
6719 mutex_exit(&stp->sd_lock); in strgetmsg()
6730 mutex_exit(&stp->sd_lock); in strgetmsg()
6756 mutex_enter(&stp->sd_lock); in strgetmsg()
6810 mutex_enter(&stp->sd_lock); in strgetmsg()
6840 mutex_enter(&stp->sd_lock); in strgetmsg()
6866 * may have cleared it while we had sd_lock dropped. in strgetmsg()
6893 * while sd_lock was not held sd_mark in strgetmsg()
6905 * If another M_PCPROTO arrived while sd_lock was not held in strgetmsg()
6915 * (STRATMARK) before we dropped sd_lock above in strgetmsg()
6956 ASSERT(MUTEX_HELD(&stp->sd_lock)); in strgetmsg()
6960 * sd_lock is held so the content of the read queue can not in strgetmsg()
6967 mutex_exit(&stp->sd_lock); in strgetmsg()
6971 mutex_enter(&stp->sd_lock); in strgetmsg()
7028 mutex_exit(&stp->sd_lock); in strgetmsg()
7030 mutex_enter(&stp->sd_lock); in strgetmsg()
7037 mutex_exit(&stp->sd_lock); in strgetmsg()
7099 mutex_enter(&stp->sd_lock); in kstrgetmsg()
7102 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7113 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7118 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7136 mutex_enter(&stp->sd_lock); in kstrgetmsg()
7153 ASSERT(MUTEX_HELD(&stp->sd_lock)); in kstrgetmsg()
7206 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7225 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7254 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7260 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7287 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7307 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7326 * need to drop sd_lock (strwaitbuf is sleeping). in kstrgetmsg()
7334 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7359 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7374 mutex_enter(&stp->sd_lock); in kstrgetmsg()
7376 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7472 mutex_enter(&stp->sd_lock); in kstrgetmsg()
7499 mutex_enter(&stp->sd_lock); in kstrgetmsg()
7536 * may have cleared it while we had sd_lock dropped. in kstrgetmsg()
7563 * while sd_lock was not held sd_mark in kstrgetmsg()
7576 * If another M_PCPROTO arrived while sd_lock was not held in kstrgetmsg()
7586 * (STRATMARK) before we dropped sd_lock above in kstrgetmsg()
7629 ASSERT(MUTEX_HELD(&stp->sd_lock)); in kstrgetmsg()
7633 * sd_lock is held so the content of the read queue can not in kstrgetmsg()
7640 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7644 mutex_enter(&stp->sd_lock); in kstrgetmsg()
7701 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7703 mutex_enter(&stp->sd_lock); in kstrgetmsg()
7710 mutex_exit(&stp->sd_lock); in kstrgetmsg()
7757 mutex_enter(&stp->sd_lock); in strputmsg()
7760 mutex_exit(&stp->sd_lock); in strputmsg()
7767 mutex_exit(&stp->sd_lock); in strputmsg()
7772 mutex_exit(&stp->sd_lock); in strputmsg()
7870 mutex_enter(&stp->sd_lock); in strputmsg()
7873 * Needed since strput did not hold sd_lock across in strputmsg()
7878 mutex_exit(&stp->sd_lock); in strputmsg()
7885 mutex_exit(&stp->sd_lock); in strputmsg()
7894 mutex_exit(&stp->sd_lock); in strputmsg()
7897 mutex_exit(&stp->sd_lock); in strputmsg()
7948 mutex_enter(&stp->sd_lock); in kstrputmsg()
7951 mutex_exit(&stp->sd_lock); in kstrputmsg()
7960 mutex_exit(&stp->sd_lock); in kstrputmsg()
7967 mutex_exit(&stp->sd_lock); in kstrputmsg()
8105 mutex_enter(&stp->sd_lock); in kstrputmsg()
8108 * Needed since strput did not hold sd_lock across in kstrputmsg()
8113 mutex_exit(&stp->sd_lock); in kstrputmsg()
8128 mutex_exit(&stp->sd_lock); in kstrputmsg()
8138 mutex_exit(&stp->sd_lock); in kstrputmsg()
8142 mutex_exit(&stp->sd_lock); in kstrputmsg()
8290 if (polllock(&stp->sd_pollist, &stp->sd_lock) != 0) { in strpoll()
8334 mutex_exit(&stp->sd_lock); in strpoll()
8346 if (polllock(&stp->sd_pollist, &stp->sd_lock) != 0) { in strpoll()
8355 mutex_exit(&stp->sd_lock); in strpoll()
8364 * sd_lock must be held when messages are placed back on stream
8365 * head. (getq() holds sd_lock when it removes messages from
8373 ASSERT(MUTEX_HELD(&stp->sd_lock)); in putback()
8376 * As a result of lock-step ordering around q_lock and sd_lock, in putback()
8438 * A message may have come in when the sd_lock was dropped in the in putback()
8492 mutex_exit(&stp->sd_lock); in putback()
8494 mutex_enter(&stp->sd_lock); in putback()
8590 mutex_enter(&stp->sd_lock); in str_cn_clean()
8621 mutex_exit(&stp->sd_lock); in str_cn_clean()