/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_ksndudat.c | 65 t_ksndudata(TIUSER *tiptr, struct t_kunitdata *unitdata, frtn_t *frtn) in t_ksndudata() argument 77 msgsz = unitdata->udata.len; in t_ksndudata() 83 ASSERT(unitdata->udata.udata_mp == NULL); in t_ksndudata() 84 ASSERT(unitdata->udata.buf != NULL); in t_ksndudata() 90 if ((dbp = (mblk_t *)esballoc((uchar_t *)unitdata->udata.buf, in t_ksndudata() 99 } else if (unitdata->udata.buf) { in t_ksndudata() 100 ASSERT(unitdata->udata.udata_mp == NULL); in t_ksndudata() 105 bcopy(unitdata->udata.buf, dbp->b_wptr, unitdata->udata.len); in t_ksndudata() 108 } else if (unitdata->udata.udata_mp) { in t_ksndudata() 109 ASSERT(unitdata->udata.buf == NULL); in t_ksndudata() [all …]
|
H A D | t_krcvudat.c | 72 t_krcvudata(TIUSER *tiptr, struct t_kunitdata *unitdata, int *type, int *uderr) in t_krcvudata() argument 91 unitdata->udata.buf = NULL; in t_krcvudata() 93 if (unitdata->udata.udata_mp) { in t_krcvudata() 95 freemsg(unitdata->udata.udata_mp); in t_krcvudata() 96 unitdata->udata.udata_mp = NULL; in t_krcvudata() 138 unitdata->addr.maxlen); in t_krcvudata() 140 unitdata->addr.buf, len); in t_krcvudata() 141 unitdata->addr.len = len; in t_krcvudata() 144 unitdata->opt.maxlen); in t_krcvudata() 146 unitdata->opt.buf, len); in t_krcvudata() [all …]
|
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_rcvudata.c | 53 struct t_unitdata *unitdata, in _tx_rcvudata() argument 118 if ((retval = getmsg(fd, &ctlbuf, (struct strbuf *)&unitdata->udata, in _tx_rcvudata() 131 if (((struct strbuf *)&unitdata->udata)->len == -1) in _tx_rcvudata() 132 unitdata->udata.len = 0; in _tx_rcvudata() 139 unitdata->udata.len = 0; in _tx_rcvudata() 157 unitdata->udata.len = 0; in _tx_rcvudata() 163 unitdata->addr.maxlen > 0) { in _tx_rcvudata() 165 unitdata->addr.maxlen)) { in _tx_rcvudata() 167 unitdata->udata.len = 0; in _tx_rcvudata() 170 (void) memcpy(unitdata->addr.buf, in _tx_rcvudata() [all …]
|
H A D | t_sndudata.c | 49 _tx_sndudata(int fd, const struct t_unitdata *unitdata, int api_semantics) in _tx_sndudata() argument 80 if (((int)unitdata->udata.len == 0) && in _tx_sndudata() 88 (unitdata->udata.len > (uint32_t)tiptr->ti_maxpsz)) { in _tx_sndudata() 115 udreq->DEST_length = unitdata->addr.len; in _tx_sndudata() 117 udreq->OPT_length = unitdata->opt.len; in _tx_sndudata() 121 if (unitdata->addr.len) { in _tx_sndudata() 122 if (_t_aligned_copy(&ctlbuf, unitdata->addr.len, size, in _tx_sndudata() 123 unitdata->addr.buf, &udreq->DEST_offset) < 0) { in _tx_sndudata() 135 if (unitdata->opt.len) { in _tx_sndudata() 136 if (_t_aligned_copy(&ctlbuf, unitdata->opt.len, size, in _tx_sndudata() [all …]
|
H A D | t_rcvvudata.c | 51 struct t_unitdata *unitdata, in _tx_rcvvudata() argument 170 if (unitdata->addr.maxlen > 0) { in _tx_rcvvudata() 172 unitdata->addr.maxlen)) { in _tx_rcvvudata() 176 (void) memcpy(unitdata->addr.buf, in _tx_rcvvudata() 179 unitdata->addr.len = in _tx_rcvvudata() 182 if (unitdata->opt.maxlen > 0) { in _tx_rcvvudata() 184 unitdata->opt.maxlen)) { in _tx_rcvvudata() 188 (void) memcpy(unitdata->opt.buf, ctlbuf.buf + in _tx_rcvvudata() 191 unitdata->opt.len = in _tx_rcvvudata() 232 unitdata->addr.len = 0; in _tx_rcvvudata() [all …]
|
H A D | t_sndvudata.c | 50 _tx_sndvudata(int fd, const struct t_unitdata *unitdata, struct t_iovec *tiov, in _tx_sndvudata() argument 118 udreq->DEST_length = unitdata->addr.len; in _tx_sndvudata() 120 udreq->OPT_length = unitdata->opt.len; in _tx_sndvudata() 124 if (unitdata->addr.len) { in _tx_sndvudata() 125 if (_t_aligned_copy(&ctlbuf, unitdata->addr.len, size, in _tx_sndvudata() 126 unitdata->addr.buf, &udreq->DEST_offset) < 0) { in _tx_sndvudata() 138 if (unitdata->opt.len) { in _tx_sndvudata() 139 if (_t_aligned_copy(&ctlbuf, unitdata->opt.len, size, in _tx_sndvudata() 140 unitdata->opt.buf, &udreq->OPT_offset) < 0) { in _tx_sndvudata()
|
H A D | xti_wrappers.c | 179 _xti_rcvudata(int fd, struct t_unitdata *unitdata, int *flags) in _xti_rcvudata() argument 181 return (_tx_rcvudata(fd, unitdata, flags, TX_XTI_API)); in _xti_rcvudata() 197 _xti_rcvvudata(int fd, struct t_unitdata *unitdata, struct t_iovec *tiov, in _xti_rcvvudata() argument 200 return (_tx_rcvvudata(fd, unitdata, tiov, tiovcount, flags, in _xti_rcvvudata() 236 _xti_sndudata(int fd, const struct t_unitdata *unitdata) in _xti_sndudata() argument 238 return (_tx_sndudata(fd, unitdata, TX_XTI_API)); in _xti_sndudata() 248 _xti_sndvudata(int fd, struct t_unitdata *unitdata, struct t_iovec *tiov, in _xti_sndvudata() argument 251 return (_tx_sndvudata(fd, unitdata, tiov, tiovcount, TX_XTI_XNS5_API)); in _xti_sndvudata()
|
H A D | tli_wrappers.c | 158 t_rcvudata(int fd, struct t_unitdata *unitdata, int *flags) in t_rcvudata() argument 160 return (_tx_rcvudata(fd, unitdata, flags, TX_TLI_API)); in t_rcvudata() 188 t_sndudata(int fd, struct t_unitdata *unitdata) in t_sndudata() argument 190 return (_tx_sndudata(fd, unitdata, TX_TLI_API)); in t_sndudata()
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | authdesubr.c | 87 struct t_kunitdata *unitdata; in rtime() local 115 T_UDATA|T_ADDR, (char **)&unitdata)) != 0) { in rtime() 121 unitdata->addr.len = addrp->len; in rtime() 122 bcopy(addrp->buf, unitdata->addr.buf, in rtime() 123 unitdata->addr.len); in rtime() 126 unitdata->udata.buf = (caddr_t)&dummy; in rtime() 127 unitdata->udata.len = sizeof (dummy); in rtime() 129 if ((error = t_ksndudata(tiptr, unitdata, NULL)) != in rtime() 132 (void) t_kfree(tiptr, (char *)unitdata, in rtime() 144 (void) t_kfree(tiptr, (char *)unitdata, in rtime() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | tiuser.h | 217 extern int t_rcvudata(int fildes, struct t_unitdata *unitdata, int *flags); 222 extern int t_sndudata(int fildes, struct t_unitdata *unitdata);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_tbind.c | 878 static struct t_unitdata *unitdata = NULL; in do_poll_clts_action() local 909 if (unitdata) { in do_poll_clts_action() 910 (void) t_free((char *)unitdata, T_UNITDATA); in do_poll_clts_action() 911 unitdata = NULL; in do_poll_clts_action() 922 if (unitdata == NULL) { in do_poll_clts_action() 924 unitdata = (struct t_unitdata *)t_alloc(fd, T_UNITDATA, T_ALL); in do_poll_clts_action() 925 if (unitdata == NULL) { in do_poll_clts_action() 963 ret = t_rcvudata(fd, unitdata, &flags); in do_poll_clts_action() 967 fd, nconf->nc_proto, unitdata->udata.len); in do_poll_clts_action()
|