Searched refs:sd_lock (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/uts/common/os/
H A Dstreamio.c172 * 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);
228 mutex_exit(&stp->sd_lock);
277 mutex_exit(&strmatep->sd_lock);
280 mutex_exit(&stp->sd_lock);
282 &strmatep->sd_lock)) {
284 mutex_exit(&strmatep->sd_lock);
[all...]
H A Dsession.c144 MUTEX_NOT_HELD(&sp->s_vp->v_stream->sd_lock));
257 ASSERT(MUTEX_HELD(&stp->sd_lock) && MUTEX_HELD(&pidlock) &&
277 ASSERT(MUTEX_HELD(&stp->sd_lock) && MUTEX_HELD(&pidlock) &&
317 mutex_enter(&stp->sd_lock); /* protects sd_pgidp/sd_sidp */
330 mutex_exit(&stp->sd_lock);
351 mutex_exit(&stp->sd_lock);
368 mutex_exit(&stp->sd_lock);
376 * sd_lock, pidlock, p_splock, s_lock
411 * due to locking order we have to grab stp->sd_lock before
434 mutex_enter(&stp->sd_lock); /* protect
[all...]
H A Dstrsubr.c651 mutex_init(&stp->sd_lock, NULL, MUTEX_DEFAULT, NULL);
670 mutex_destroy(&stp->sd_lock);
937 /* Have to hold sd_lock to prevent siglist from changing */
938 mutex_enter(&stp->sd_lock);
941 mutex_exit(&stp->sd_lock);
1034 * Must be called with exclusive access to siglist (caller holding sd_lock).
1037 * sd_lock and the ioctl code maintains a PID_HOLD on the pid structure
1234 mutex_enter(&STREAM(qp)->sd_lock);
1236 mutex_exit(&STREAM(qp)->sd_lock);
1845 mutex_enter(&stpdown->sd_lock);
[all...]
H A Dputnext.c171 mutex_enter(sdlock = &stp->sd_lock);
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_ctldir.c91 kmutex_t sd_lock; member in struct:zfsctl_snapdir
551 * the sd_lock mutex held by our caller.
571 ASSERT(MUTEX_HELD(&sdp->sd_lock));
663 mutex_enter(&sdp->sd_lock);
667 mutex_exit(&sdp->sd_lock);
675 mutex_exit(&sdp->sd_lock);
716 mutex_enter(&sdp->sd_lock);
731 mutex_exit(&sdp->sd_lock);
809 if (MUTEX_HELD(&sdp->sd_lock))
837 mutex_enter(&sdp->sd_lock);
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dstrsubr.h73 * In general, sd_lock protects the consistency of the stdata
135 * Per stream sd_lock in putnext may be replaced by per cpu stream_putlocks
144 * strlock() uses stream_putlocks only under sd_lock acquiring sd_lock when
149 * sd_lock and are always grabbed right after grabbing sd_lock and released
150 * right before releasing sd_lock except putnext/canputnext where only one of
194 kmutex_t sd_lock; /* protect head consistency */ member in struct:stdata
819 ASSERT(MUTEX_HELD(&(stp)->sd_lock)); \
831 ASSERT(MUTEX_HELD(&(stp)->sd_lock)); \
[all...]
/illumos-gate/usr/src/uts/common/fs/namefs/
H A Dnamevfs.c439 mutex_enter(&stp->sd_lock);
441 mutex_exit(&stp->sd_lock);
598 mutex_enter(&stp->sd_lock);
600 mutex_exit(&stp->sd_lock);
/illumos-gate/usr/src/uts/common/c2/
H A Daudit.c662 mutex_enter(&stp->sd_lock);
671 mutex_exit(&stp->sd_lock);
676 mutex_exit(&stp->sd_lock);
692 mutex_enter(&stp->sd_lock);
701 mutex_exit(&stp->sd_lock);
706 mutex_exit(&stp->sd_lock);
1440 mutex_enter(&q->q_stream->sd_lock);
1445 mutex_exit(&q->q_stream->sd_lock);
1458 mutex_exit(&q->q_stream->sd_lock);
1463 mutex_exit(&q->q_stream->sd_lock);
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dstream.c2103 * For the read side it is ok to hold sd_lock across calling this (and the
2105 * But for the write side strwakeq might be invoked and it acquires sd_lock.
2115 ASSERT((q->q_flag & QREADR) || MUTEX_NOT_HELD(&STREAM(q)->sd_lock));
3562 mutex_enter(&stp->sd_lock);
3573 mutex_exit(&stp->sd_lock);
3575 mutex_enter(&stp->sd_lock);
3587 mutex_exit(&stp->sd_lock);
3589 mutex_enter(&stp->sd_lock);
3603 mutex_exit(&stp->sd_lock);
3605 mutex_enter(&stp->sd_lock);
[all...]
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dcrypto.c239 * We do not need to hold sd_lock in the macros below
592 mutex_destroy(&sp->sd_lock);
1961 mutex_init(&sp->sd_lock, NULL, MUTEX_DRIVER, NULL);
2018 mutex_enter(&sp->sd_lock);
2021 mutex_exit(&sp->sd_lock);
2034 mutex_destroy(&sp->sd_lock);
2454 mutex_enter(&sp->sd_lock);
2457 if (cv_wait_sig(&sp->sd_cv, &sp->sd_lock) == 0) {
2458 mutex_exit(&sp->sd_lock);
2466 mutex_exit(&sp->sd_lock);
[all...]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockstr.c401 mutex_enter(&stp->sd_lock);
404 mutex_exit(&stp->sd_lock);
1620 mutex_enter(&stp->sd_lock);
1637 mutex_exit(&stp->sd_lock);
H A Dsocktpi.c573 mutex_enter(&stp->sd_lock);
575 mutex_exit(&stp->sd_lock);
4524 * not be accurate so we don't grab the sd_lock here. If
4525 * we get flow-controlled, we grab sd_lock just before the
4534 mutex_enter(&stp->sd_lock);
4536 mutex_exit(&stp->sd_lock);
4552 mutex_enter(&stp->sd_lock);
4555 mutex_exit(&stp->sd_lock);
4572 mutex_exit(&stp->sd_lock);
H A Dsocksyscalls.c2696 mutex_enter(&stp->sd_lock);
2699 &stp->sd_lock) == 0) {
2705 mutex_exit(&stp->sd_lock);
H A Dnl7curi.c1684 mutex_enter(&stp->sd_lock);
1686 mutex_exit(&stp->sd_lock);
/illumos-gate/usr/src/uts/common/fs/specfs/
H A Dspecvnops.c847 mutex_enter(&stp->sd_lock);
849 mutex_exit(&stp->sd_lock);
/illumos-gate/usr/src/uts/common/sys/crypto/
H A Dimpl.h506 kmutex_t sd_lock; member in struct:crypto_session_data
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp.c3295 mutex_enter(&stp->sd_lock);
3298 mutex_exit(&stp->sd_lock);

Completed in 218 milliseconds