/illumos-gate/usr/src/lib/libnsl/nsl/ |
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_rcvvudata.c | 65 struct _ti_user *tiptr; local 78 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 80 sig_mutex_lock(&tiptr->ti_lock); 82 if (tiptr->ti_servtype != T_CLTS) { 84 sig_mutex_unlock(&tiptr->ti_lock); 88 if (tiptr->ti_state != T_IDLE) { 90 sig_mutex_unlock(&tiptr->ti_lock); 97 if (tiptr->ti_lookcnt > 0) { 98 sig_mutex_unlock(&tiptr->ti_lock); 107 if (_t_acquire_ctlbuf(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 | _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_optmgmt.c | 70 struct _ti_user *tiptr; local 78 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 89 sig_mutex_lock(&tiptr->ti_lock); 96 if (_t_acquire_ctlbuf(tiptr, &ctlbuf, &didalloc) < 0) { 98 sig_mutex_unlock(&tiptr->ti_lock); 308 _T_TX_NEXTSTATE(T_OPTMGMT, tiptr, 314 tiptr->ti_ctlbuf = ctlbuf.buf; 315 sig_mutex_unlock(&tiptr->ti_lock); 325 tiptr->ti_ctlbuf = ctlbuf.buf; 326 sig_mutex_unlock(&tiptr [all...] |
H A D | t_alloc.c | 67 struct _ti_user *tiptr; local 71 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 73 sig_mutex_lock(&tiptr->ti_lock); 89 sig_mutex_unlock(&tiptr->ti_lock); 97 sig_mutex_unlock(&tiptr->ti_lock); 119 sig_mutex_unlock(&tiptr->ti_lock); 149 sig_mutex_unlock(&tiptr->ti_lock); 166 sig_mutex_unlock(&tiptr->ti_lock); 177 sig_mutex_unlock(&tiptr->ti_lock); 204 sig_mutex_unlock(&tiptr [all...] |
H A D | tx.h | 128 #define _T_TX_SYSLOG2(tiptr, X, Y) if ((tiptr)->ti_state == T_BADSTATE)\ 131 #define _T_TX_SYSLOG2(tiptr, X, Y) 138 #define _T_TX_NEXTSTATE(event, tiptr, errstr) \ 139 { tiptr->ti_state = tiusr_statetbl[event][(tiptr)->ti_state]; \ 140 _T_TX_SYSLOG2((tiptr), LOG_ERR, errstr); \
|
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) {
|
/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_kalloc.c | 69 t_kalloc(TIUSER *tiptr, int struct_type, int fields, char **ptr) argument 95 _alloc_buf(&p.bind->addr, tiptr->tp_info.addr); 102 _alloc_buf(&p.call->addr, tiptr->tp_info.addr); 104 _alloc_buf(&p.call->opt, tiptr->tp_info.options); 106 dsize = MAX(tiptr->tp_info.connect, 107 tiptr->tp_info.discon); 116 _alloc_buf(&p.opt->opt, tiptr->tp_info.options); 123 _alloc_buf(&p.dis->udata, tiptr->tp_info.discon); 130 _alloc_buf(&p.udata->addr, tiptr->tp_info.addr); 135 _alloc_buf(&p.udata->opt, tiptr [all...] |
H A D | t_kutil.c | 73 tli_send(TIUSER *tiptr, mblk_t *bp, int fmode) argument 78 vp = tiptr->fp->f_vnode; 88 tli_recv(TIUSER *tiptr, mblk_t **bp, int fmode) argument 97 vp = tiptr->fp->f_vnode; 114 get_ok_ack(TIUSER *tiptr, int type, int fmode) argument 127 if ((error = tli_recv(tiptr, &bp, fmode)) != 0) 202 t_kadvise(TIUSER *tiptr, uchar_t *addr, int addr_len) argument 210 fp = tiptr->fp;
|
H A D | t_kspoll.c | 83 t_kspoll(TIUSER *tiptr, int timo, int waitflg, int *events) argument 94 fp = tiptr->fp;
|
H A D | t_kbind.c | 68 t_kbind(TIUSER *tiptr, struct t_bind *req, struct t_bind *ret) argument 82 fp = tiptr->fp; 90 bindsz = MAX(bindsz, tiptr->tp_info.addr);
|
H A D | t_kunbind.c | 70 t_kunbind(TIUSER *tiptr) argument 84 fp = tiptr->fp;
|
H A D | t_kgtstate.c | 69 t_kgetstate(TIUSER *tiptr, int *state) argument 80 fp = tiptr->fp;
|
H A D | t_kconnect.c | 69 t_kconnect(TIUSER *tiptr, struct t_call *sndcall, struct t_call *rcvcall) argument 84 fp = tiptr->fp; 147 if ((error = tli_send(tiptr, bp, flag)) != 0) 153 if ((error = get_ok_ack(tiptr, T_CONN_REQ, flag)) != 0) 160 if ((error = tli_recv(tiptr, &bp, flag)) != 0)
|
H A D | t_ksndudat.c | 65 t_ksndudata(TIUSER *tiptr, struct t_kunitdata *unitdata, frtn_t *frtn) argument 76 fp = tiptr->fp; 186 error = tli_send(tiptr, bp, flag);
|
H A D | t_kopen.c | 44 * 0 on success and "tiptr" is set to a valid transport pointer, 69 t_kopen(file_t *fp, dev_t rdev, int flags, TIUSER **tiptr, cred_t *cr) argument 91 *tiptr = NULL; 258 *tiptr = ntiptr;
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | clnt_gen.c | 219 TIUSER *tiptr, 236 if ((error = t_kalloc(tiptr, T_BIND, T_ADDR, (char **)&req)) != 0) { 241 if ((error = t_kalloc(tiptr, T_BIND, T_ADDR, (char **)&ret)) != 0) { 243 (void) t_kfree(tiptr, (char *)req, T_BIND); 247 /* now separate IPv4 and IPv6 by looking at len of tiptr.addr */ 248 if (tiptr->tp_info.addr == sizeof (struct sockaddr_in6)) { 275 RPCLOG(8, "bindresvport: calling t_kbind tiptr = %p\n", 276 (void *)tiptr); 277 if ((error = t_kbind(tiptr, req, ret)) != 0) { 285 (void) t_kunbind(tiptr); 218 bindresvport( TIUSER *tiptr, struct netbuf *addr, struct netbuf *bound_addr, bool_t tcp) argument [all...] |
/illumos-gate/usr/src/uts/common/inet/kifconf/ |
H A D | kifconf.c | 65 kdlifconfig(TIUSER *tiptr, int af, void *myIPaddr, void *mymask, argument 94 if (rc = kifioctl(tiptr, SIOCSLIFNETMASK, &sbuf, ifname)) { 114 if (rc = kifioctl(tiptr, SIOCSLIFADDR, &sbuf, ifname)) { 128 if (rc = kifioctl(tiptr, SIOCSLIFBRDADDR, &sbuf, 138 if (rc = ksetifflags(tiptr, IFF_UP, ifname)) { 155 if (rc = kifioctl(tiptr, SIOCADDRT, &sbuf, ifname)) { 163 kifioctl(TIUSER *tiptr, int cmd, struct netbuf *nbuf, char *ifname) argument 204 vp = tiptr->fp->f_vnode; 214 ksetifflags(TIUSER *tiptr, uint_t value, char *ifname) argument 232 if (rc = kstr_ioctl(tiptr [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | bootprops.h | 72 kdlifconfig(TIUSER *tiptr, int af, void *myIPaddr, void *mymask, 75 ksetifflags(TIUSER *tiptr, uint_t value, char *ifname); 77 kifioctl(TIUSER *tiptr, int cmd, struct netbuf *nbuf, char *ifname);
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_dump.c | 108 static TIUSER *tiptr; local 120 if (error = nd_init(dumpvp, &tiptr)) 125 error = nd_send_data(tiptr, addr, (int)dbtob(bn + i), 131 if (error = nd_poll(tiptr, retry, &reply)) 140 error = nd_get_reply(tiptr, &xdrs, call_xid, 152 nd_init(vnode_t *dumpvp, TIUSER **tiptr) argument 156 if (*tiptr) 206 FREAD|FWRITE|FNDELAY, tiptr, CRED())) { 214 if (error = bindresvport(*tiptr, NULL, NULL, FALSE)) { 221 if ((error = t_kbind(*tiptr, NUL 230 nd_send_data(TIUSER *tiptr, caddr_t addr, int offset, XDR *xdrp, uint32_t *xidp) argument 358 nd_get_reply(TIUSER *tiptr, XDR *xdrp, uint32_t call_xid, int *badmsg) argument 472 nd_poll(TIUSER *tiptr, int retry, int *eventp) argument [all...] |
H A D | nfs_dlinet.c | 634 TIUSER *tiptr; local 646 FREAD|FWRITE, &tiptr, CRED())) != 0) { 653 if (rc = revarp_myaddr(tiptr)) { 655 (void) t_kclose(tiptr, 0); 670 if (rc = ifioctl(tiptr, SIOCGIFADDR, &req)) { 675 (void) t_kclose(tiptr, 0); 791 if (rc = rtioctl(tiptr, SIOCADDRT, &rtentry)) { 805 (void) t_kclose(tiptr, 0); 964 TIUSER *tiptr; local 1097 FREAD|FWRITE, &tiptr, CRE 1301 dlifconfig(TIUSER *tiptr, struct in_addr *myIPaddr, struct in_addr *mymask, struct in_addr *mybraddr, uint_t flags) argument 1427 rtioctl(TIUSER *tiptr, int cmd, struct rtentry *rtentry) argument 1454 ifioctl(TIUSER *tiptr, int cmd, struct netbuf *nbuf) argument 1494 setifflags(TIUSER *tiptr, uint_t value) argument 1524 revarp_myaddr(TIUSER *tiptr) argument 2129 TIUSER *tiptr; local [all...] |
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_trantcp.c | 232 TIUSER *tiptr = nbp->nbp_tiptr; local 240 if (tiptr == NULL) 254 error = tli_send(tiptr, mp, tiptr->fp->f_flag); 552 TIUSER *tiptr; local 555 err = t_kopen(fp, 0, 0, &tiptr, cr); 561 nbp->nbp_tiptr = tiptr; 562 nbp->nbp_fmode = tiptr->fp->f_flag;
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rds_ioctl.c | 51 TIUSER *tiptr; local 58 &tiptr, CRED()) == 0) { 59 vp = tiptr->fp->f_vnode; 75 (void) t_kclose(tiptr, 0);
|