| /illumos-gate/usr/src/lib/libnsl/nsl/ |
| H A D | t_getstate.c | 44 struct _ti_user *tiptr; local 46 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 49 switch (tiptr->ti_state) { 58 return (tiptr->ti_state);
|
| H A D | t_sync.c | 43 struct _ti_user *tiptr; local 58 if ((tiptr = _t_checkfd(fd, force_sync, api_semantics)) == NULL) 60 return (tiptr->ti_state);
|
| H A D | t_sndrel.c | 53 struct _ti_user *tiptr; local 55 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 57 sig_mutex_lock(&tiptr->ti_lock); 59 if (tiptr->ti_servtype != T_COTS_ORD) { 61 sig_mutex_unlock(&tiptr->ti_lock); 70 if (!(tiptr->ti_state == T_DATAXFER || 71 tiptr->ti_state == T_INREL)) { 73 sig_mutex_unlock(&tiptr->ti_lock); 77 if (_t_look_locked(fd, tiptr, 0, 80 sig_mutex_unlock(&tiptr [all...] |
| H A D | t_rcvconnect.c | 54 struct _ti_user *tiptr; local 59 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 62 sig_mutex_lock(&tiptr->ti_lock); 69 if (tiptr->ti_state != T_OUTCON) { 71 sig_mutex_unlock(&tiptr->ti_lock); 80 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { 82 sig_mutex_unlock(&tiptr->ti_lock); 87 retval = _t_rcv_conn_con(tiptr, call, &ctlbuf, api_semantics); 89 _T_TX_NEXTSTATE(T_RCVCONNECT, tiptr, 99 if (tiptr [all...] |
| H A D | t_sndreldata.c | 51 struct _ti_user *tiptr; local 54 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 56 sig_mutex_lock(&tiptr->ti_lock); 58 if (tiptr->ti_servtype != T_COTS_ORD) { 60 sig_mutex_unlock(&tiptr->ti_lock); 64 if (!(tiptr->ti_state == T_DATAXFER || 65 tiptr->ti_state == T_INREL)) { 67 sig_mutex_unlock(&tiptr->ti_lock); 71 if (_t_look_locked(fd, tiptr, 0, 74 sig_mutex_unlock(&tiptr [all...] |
| H A D | _conn_util.c | 54 * execute). Also, assumes tiptr->ti_lock is held. 58 struct _ti_user *tiptr, 66 assert(MUTEX_HELD(&tiptr->ti_lock)); 67 fd = tiptr->ti_fd; 69 if (tiptr->ti_servtype == T_CLTS) { 74 if (_t_is_event(fd, tiptr) < 0) 113 if ((tiptr->ti_cdatasize == T_INVALID /* -2 */) || 114 ((tiptr->ti_cdatasize != T_INFINITE /* -1 */) && 115 (call->udata.len > (uint32_t)tiptr->ti_cdatasize))) { 138 if (_t_is_ok(fd, tiptr, T_CONN_RE 57 _t_snd_conn_req( struct _ti_user *tiptr, const struct t_call *call, struct strbuf *ctlbufp) argument 152 _t_rcv_conn_con( struct _ti_user *tiptr, struct t_call *call, struct strbuf *ctlbufp, int api_semantics) argument [all...] |
| H A D | t_accept.c | 59 struct _ti_user *tiptr; local 66 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 78 sig_mutex_lock(&tiptr->ti_lock); 80 if (tiptr->ti_servtype == T_CLTS) { 82 sig_mutex_unlock(&tiptr->ti_lock); 100 if ((fd == resfd && tiptr->ti_state != T_INCON) || 102 ((tiptr->ti_state != T_INCON) || 106 sig_mutex_unlock(&tiptr->ti_lock); 121 sig_mutex_unlock(&tiptr->ti_lock); 126 if (fd == resfd && tiptr [all...] |
| H A D | t_bind.c | 58 struct _ti_user *tiptr; local 65 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 75 sig_mutex_lock(&tiptr->ti_lock); 81 if (tiptr->ti_state != T_UNBND) { 83 sig_mutex_unlock(&tiptr->ti_lock); 93 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { 95 sig_mutex_unlock(&tiptr->ti_lock); 106 ((tiptr->ti_prov_flag & XPG4_1) != 0); 163 (void) _tx_unbind_locked(fd, tiptr, &ctlbuf); 169 tiptr [all...] |
| H A D | t_connect.c | 62 struct _ti_user *tiptr; local 68 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 71 sig_mutex_lock(&tiptr->ti_lock); 77 if (tiptr->ti_state != T_IDLE) { 79 sig_mutex_unlock(&tiptr->ti_lock); 88 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { 90 sig_mutex_unlock(&tiptr->ti_lock); 99 if (_t_snd_conn_req(tiptr, sndcall, &ctlbuf) < 0) { 124 _T_TX_NEXTSTATE(T_CONNECT2, tiptr, 133 * tiptr [all...] |
| H A D | t_getinfo.c | 59 struct _ti_user *tiptr; local 63 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0) 65 sig_mutex_lock(&tiptr->ti_lock); 72 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { 74 sig_mutex_unlock(&tiptr->ti_lock); 117 tiptr->ti_ctlbuf = ctlbuf.buf; 118 sig_mutex_unlock(&tiptr->ti_lock); 126 tiptr->ti_ctlbuf = ctlbuf.buf; 127 sig_mutex_unlock(&tiptr->ti_lock);
|
| H A D | t_listen.c | 53 struct _ti_user *tiptr; local 58 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 61 sig_mutex_lock(&tiptr->ti_lock); 63 if (tiptr->ti_servtype == T_CLTS) { 66 sig_mutex_unlock(&tiptr->ti_lock); 75 if (!(tiptr->ti_state == T_IDLE || 76 tiptr->ti_state == T_INCON)) { 78 sig_mutex_unlock(&tiptr->ti_lock); 82 if (tiptr->ti_qlen == 0) { 84 sig_mutex_unlock(&tiptr [all...] |
| H A D | t_look.c | 50 struct _ti_user *tiptr; local 52 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 54 sig_mutex_lock(&tiptr->ti_lock); 60 state = _t_look_locked(fd, tiptr, do_expinline_peek, api_semantics); 64 sig_mutex_unlock(&tiptr->ti_lock); 70 * _t_look_locked() assumes tiptr->ti_lock lock is already held and signals 77 struct _ti_user *tiptr, 88 assert(MUTEX_HELD(&tiptr->ti_lock)); 146 if ((tiptr->ti_lookcnt > 0) || 151 if (tiptr 75 _t_look_locked( int fd, struct _ti_user *tiptr, int do_expinline_peek, int api_semantics ) argument [all...] |
| H A D | t_open.c | 69 struct _ti_user *tiptr; local 144 tiptr = _t_create(fd, info, api_semantics, &ticap_ioctl_failed); 145 if (tiptr == NULL) {
|
| H A D | t_rcvdis.c | 54 struct _ti_user *tiptr; local 60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 69 sig_mutex_lock(&tiptr->ti_lock); 71 if (tiptr->ti_servtype == T_CLTS) { 73 sig_mutex_unlock(&tiptr->ti_lock); 82 if (!(tiptr->ti_state == T_DATAXFER || 83 tiptr->ti_state == T_OUTCON || 84 tiptr->ti_state == T_OUTREL || 85 tiptr->ti_state == T_INREL || 86 (tiptr [all...] |
| H A D | t_rcvrel.c | 58 struct _ti_user *tiptr; local 64 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0) 66 sig_mutex_lock(&tiptr->ti_lock); 68 if (tiptr->ti_servtype != T_COTS_ORD) { 70 sig_mutex_unlock(&tiptr->ti_lock); 79 if (!(tiptr->ti_state == T_DATAXFER || 80 tiptr->ti_state == T_OUTREL)) { 82 sig_mutex_unlock(&tiptr->ti_lock); 87 if ((retval = _t_look_locked(fd, tiptr, 0, api_semantics)) < 0) { 89 sig_mutex_unlock(&tiptr [all...] |
| H A D | t_rcvreldata.c | 57 struct _ti_user *tiptr; local 65 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == 0) 67 sig_mutex_lock(&tiptr->ti_lock); 69 if (tiptr->ti_servtype != T_COTS_ORD) { 71 sig_mutex_unlock(&tiptr->ti_lock); 75 if (!(tiptr->ti_state == T_DATAXFER || 76 tiptr->ti_state == T_OUTREL)) { 78 sig_mutex_unlock(&tiptr->ti_lock); 82 if ((retval = _t_look_locked(fd, tiptr, 0, api_semantics)) < 0) { 84 sig_mutex_unlock(&tiptr [all...] |
| H A D | t_rcvudata.c | 63 struct _ti_user *tiptr; local 68 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 70 sig_mutex_lock(&tiptr->ti_lock); 72 if (tiptr->ti_servtype != T_CLTS) { 74 sig_mutex_unlock(&tiptr->ti_lock); 83 if (tiptr->ti_state != T_IDLE) { 85 sig_mutex_unlock(&tiptr->ti_lock); 94 if (tiptr->ti_lookcnt > 0) { 95 sig_mutex_unlock(&tiptr->ti_lock); 104 if (_t_acquire_ctlbuf(tiptr, [all...] |
| H A D | t_rcvuderr.c | 54 struct _ti_user *tiptr; local 60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 62 sig_mutex_lock(&tiptr->ti_lock); 64 if (tiptr->ti_servtype != T_CLTS) { 66 sig_mutex_unlock(&tiptr->ti_lock); 72 if (tiptr->ti_lookcnt > 0) { 73 ctlbuf.len = tiptr->ti_lookbufs.tl_lookclen; 74 ctlbuf.buf = tiptr->ti_lookbufs.tl_lookcbuf; 88 if ((retval = _t_look_locked(fd, tiptr, 0, 91 sig_mutex_unlock(&tiptr [all...] |
| H A D | t_snddis.c | 52 struct _ti_user *tiptr; local 56 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 58 sig_mutex_lock(&tiptr->ti_lock); 60 if (tiptr->ti_servtype == T_CLTS) { 62 sig_mutex_unlock(&tiptr->ti_lock); 73 if (!(tiptr->ti_state == T_DATAXFER || 74 tiptr->ti_state == T_OUTCON || 75 tiptr->ti_state == T_OUTREL || 76 tiptr->ti_state == T_INREL || 77 (tiptr [all...] |
| H A D | t_sndudata.c | 56 struct _ti_user *tiptr; local 60 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 62 sig_mutex_lock(&tiptr->ti_lock); 64 if (tiptr->ti_servtype != T_CLTS) { 66 sig_mutex_unlock(&tiptr->ti_lock); 75 if (tiptr->ti_state != T_IDLE) { 77 sig_mutex_unlock(&tiptr->ti_lock); 83 !(tiptr->ti_prov_flag & (SENDZERO|OLD_SENDZERO))) { 85 sig_mutex_unlock(&tiptr->ti_lock); 89 if ((tiptr [all...] |
| H A D | t_sndvudata.c | 57 struct _ti_user *tiptr; local 64 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 66 sig_mutex_lock(&tiptr->ti_lock); 68 if (tiptr->ti_servtype != T_CLTS) { 70 sig_mutex_unlock(&tiptr->ti_lock); 76 sig_mutex_unlock(&tiptr->ti_lock); 80 if (tiptr->ti_state != T_IDLE) { 82 sig_mutex_unlock(&tiptr->ti_lock); 89 !(tiptr->ti_prov_flag & (SENDZERO|OLD_SENDZERO))) { 91 sig_mutex_unlock(&tiptr [all...] |
| H A D | t_unbind.c | 51 struct _ti_user *tiptr; local 56 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 64 if (tiptr->ti_state != T_IDLE) { 77 sig_mutex_lock(&tiptr->ti_lock); 83 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { 85 sig_mutex_unlock(&tiptr->ti_lock); 91 retval = _tx_unbind_locked(fd, tiptr, &ctlbuf); 97 tiptr->ti_ctlbuf = ctlbuf.buf; 98 sig_mutex_unlock(&tiptr->ti_lock); 105 _tx_unbind_locked(int fd, struct _ti_user *tiptr, struc argument [all...] |
| /illumos-gate/usr/src/uts/common/ktli/ |
| H A D | t_kclose.c | 65 t_kclose(TIUSER *tiptr, int callclosef) argument 69 fp = (tiptr->flags & MADE_FP) ? tiptr->fp : NULL; 71 kmem_free(tiptr, TIUSERSZ);
|
| H A D | t_kgtstate.c | 69 t_kgetstate(TIUSER *tiptr, int *state) argument 80 fp = tiptr->fp;
|
| H A D | t_kunbind.c | 70 t_kunbind(TIUSER *tiptr) argument 84 fp = tiptr->fp;
|