Home
last modified time | relevance | path

Searched full:sd_lock (Results 1 – 20 of 20) sorted by relevance

/titanic_53/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); 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()
[all …]
H A Dsession.c144 MUTEX_NOT_HELD(&sp->s_vp->v_stream->sd_lock)); in tty_hold()
257 ASSERT(MUTEX_HELD(&stp->sd_lock) && MUTEX_HELD(&pidlock) && in sess_ctty_clear()
277 ASSERT(MUTEX_HELD(&stp->sd_lock) && MUTEX_HELD(&pidlock) && in sess_ctty_set()
317 mutex_enter(&stp->sd_lock); /* protects sd_pgidp/sd_sidp */ in strctty()
330 mutex_exit(&stp->sd_lock); in strctty()
351 mutex_exit(&stp->sd_lock); in strctty()
368 mutex_exit(&stp->sd_lock); in strctty()
376 * sd_lock, pidlock, p_splock, s_lock
411 * due to locking order we have to grab stp->sd_lock before in freectty_lock()
434 mutex_enter(&stp->sd_lock); /* protects sd_pgidp/sd_sidp */ in freectty_lock()
[all …]
H A Dstrsubr.c651 mutex_init(&stp->sd_lock, NULL, MUTEX_DEFAULT, NULL); in stream_head_constructor()
670 mutex_destroy(&stp->sd_lock); in stream_head_destructor()
937 /* Have to hold sd_lock to prevent siglist from changing */ in str_sendsig()
938 mutex_enter(&stp->sd_lock); in str_sendsig()
941 mutex_exit(&stp->sd_lock); in str_sendsig()
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); in qreopen()
1236 mutex_exit(&STREAM(qp)->sd_lock); in qreopen()
1845 mutex_enter(&stpdown->sd_lock); in mlink_file()
[all …]
H A Dputnext.c171 mutex_enter(sdlock = &stp->sd_lock); in putnext()
/titanic_53/usr/src/uts/common/fs/zfs/
H A Dzfs_ctldir.c91 kmutex_t sd_lock; member
551 * the sd_lock mutex held by our caller. in zfsctl_unmount_snap()
571 ASSERT(MUTEX_HELD(&sdp->sd_lock)); in zfsctl_rename_snap()
663 mutex_enter(&sdp->sd_lock); in zfsctl_snapdir_rename()
667 mutex_exit(&sdp->sd_lock); in zfsctl_snapdir_rename()
675 mutex_exit(&sdp->sd_lock); in zfsctl_snapdir_rename()
716 mutex_enter(&sdp->sd_lock); in zfsctl_snapdir_remove()
731 mutex_exit(&sdp->sd_lock); in zfsctl_snapdir_remove()
809 if (MUTEX_HELD(&sdp->sd_lock)) in zfsctl_snapdir_lookup()
837 mutex_enter(&sdp->sd_lock); in zfsctl_snapdir_lookup()
[all …]
/titanic_53/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
819 ASSERT(MUTEX_HELD(&(stp)->sd_lock)); \
831 ASSERT(MUTEX_HELD(&(stp)->sd_lock)); \
961 #define CLAIM_QNEXT_LOCK(stp) mutex_enter(&(stp)->sd_lock)
962 #define RELEASE_QNEXT_LOCK(stp) mutex_exit(&(stp)->sd_lock)
[all …]
H A Dsession.h56 * sd_lock -> pidlock -> p_splock -> s_lock
/titanic_53/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)); in qbackenable()
3562 mutex_enter(&stp->sd_lock); in strwakeq()
3573 mutex_exit(&stp->sd_lock); in strwakeq()
3575 mutex_enter(&stp->sd_lock); in strwakeq()
3587 mutex_exit(&stp->sd_lock); in strwakeq()
3589 mutex_enter(&stp->sd_lock); in strwakeq()
3603 mutex_exit(&stp->sd_lock); in strwakeq()
3605 mutex_enter(&stp->sd_lock); in strwakeq()
[all …]
/titanic_53/usr/src/uts/common/c2/
H A Daudit.c662 mutex_enter(&stp->sd_lock); in audit_strgetmsg()
671 mutex_exit(&stp->sd_lock); in audit_strgetmsg()
676 mutex_exit(&stp->sd_lock); in audit_strgetmsg()
692 mutex_enter(&stp->sd_lock); in audit_strputmsg()
701 mutex_exit(&stp->sd_lock); in audit_strputmsg()
706 mutex_exit(&stp->sd_lock); in audit_strputmsg()
1440 mutex_enter(&q->q_stream->sd_lock); in audit_sock()
1445 mutex_exit(&q->q_stream->sd_lock); in audit_sock()
1458 mutex_exit(&q->q_stream->sd_lock); in audit_sock()
1463 mutex_exit(&q->q_stream->sd_lock); in audit_sock()
[all …]
/titanic_53/usr/src/uts/common/fs/namefs/
H A Dnamevfs.c439 mutex_enter(&stp->sd_lock); in nm_mount()
441 mutex_exit(&stp->sd_lock); in nm_mount()
598 mutex_enter(&stp->sd_lock); in nm_unmount()
600 mutex_exit(&stp->sd_lock); in nm_unmount()
/titanic_53/usr/src/uts/i86pc/ml/
H A Doffsets.in270 sd_lock
/titanic_53/usr/src/uts/sun4/ml/
H A Doffsets.in450 sd_lock
/titanic_53/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); in crypto_close()
1961 mutex_init(&sp->sd_lock, NULL, MUTEX_DRIVER, NULL); in crypto_open_session()
2018 mutex_enter(&sp->sd_lock); in crypto_close_session()
2021 mutex_exit(&sp->sd_lock); in crypto_close_session()
2034 mutex_destroy(&sp->sd_lock); in crypto_close_session()
2454 mutex_enter(&sp->sd_lock); in get_session_ptr()
2457 if (cv_wait_sig(&sp->sd_cv, &sp->sd_lock) == 0) { in get_session_ptr()
2458 mutex_exit(&sp->sd_lock); in get_session_ptr()
2466 mutex_exit(&sp->sd_lock); in get_session_ptr()
[all …]
/titanic_53/usr/src/uts/common/fs/sockfs/
H A Dsocktpi.c564 mutex_enter(&stp->sd_lock); in sotpi_init()
566 mutex_exit(&stp->sd_lock); in sotpi_init()
4496 * not be accurate so we don't grab the sd_lock here. If in kstrwritemp()
4497 * we get flow-controlled, we grab sd_lock just before the in kstrwritemp()
4506 mutex_enter(&stp->sd_lock); in kstrwritemp()
4508 mutex_exit(&stp->sd_lock); in kstrwritemp()
4524 mutex_enter(&stp->sd_lock); in kstrwritemp()
4527 mutex_exit(&stp->sd_lock); in kstrwritemp()
4544 mutex_exit(&stp->sd_lock); in kstrwritemp()
H A Dsockstr.c401 mutex_enter(&stp->sd_lock); in so_basic_strinit()
404 mutex_exit(&stp->sd_lock); in so_basic_strinit()
1620 mutex_enter(&stp->sd_lock); in strsock_discon_ind()
1637 mutex_exit(&stp->sd_lock); in strsock_discon_ind()
H A Dsocksyscalls.c2685 mutex_enter(&stp->sd_lock); in snf_segmap()
2688 &stp->sd_lock) == 0) { in snf_segmap()
2694 mutex_exit(&stp->sd_lock); in snf_segmap()
H A Dnl7curi.c1684 mutex_enter(&stp->sd_lock); in kstrwritempnoqwait()
1686 mutex_exit(&stp->sd_lock); in kstrwritempnoqwait()
/titanic_53/usr/src/uts/common/fs/specfs/
H A Dspecvnops.c847 mutex_enter(&stp->sd_lock); in spec_open()
849 mutex_exit(&stp->sd_lock); in spec_open()
/titanic_53/usr/src/uts/common/sys/crypto/
H A Dimpl.h506 kmutex_t sd_lock; member
/titanic_53/usr/src/uts/common/inet/tcp/
H A Dtcp.c3295 mutex_enter(&stp->sd_lock); in tcp_zcopy_notify()
3298 mutex_exit(&stp->sd_lock); in tcp_zcopy_notify()