/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_kunbind.c | 76 struct strioctl strioc; in t_kunbind() local 95 strioc.ic_cmd = TI_UNBIND; in t_kunbind() 96 strioc.ic_timout = 0; in t_kunbind() 97 strioc.ic_dp = buf; in t_kunbind() 98 strioc.ic_len = (int)TUNBINDREQSZ; in t_kunbind() 100 error = strdoioctl(vp->v_stream, &strioc, FNATIVE, K_TO_K, CRED(), in t_kunbind() 114 ok_ack = (struct T_ok_ack *)strioc.ic_dp; in t_kunbind() 115 if (strioc.ic_len < TOKACKSZ || in t_kunbind()
|
H A D | t_kgtstate.c | 70 struct strioctl strioc; in t_kgetstate() local 85 strioc.ic_cmd = TI_GETINFO; in t_kgetstate() 86 strioc.ic_timout = 0; in t_kgetstate() 87 strioc.ic_dp = (char *)&inforeq; in t_kgetstate() 88 strioc.ic_len = (int)sizeof (struct T_info_req); in t_kgetstate() 90 error = strdoioctl(vp->v_stream, &strioc, FNATIVE, K_TO_K, CRED(), in t_kgetstate() 103 if (strioc.ic_len != sizeof (struct T_info_ack)) in t_kgetstate()
|
H A D | t_kbind.c | 74 struct strioctl strioc; in t_kbind() local 103 strioc.ic_cmd = TI_BIND; in t_kbind() 104 strioc.ic_timout = 0; in t_kbind() 105 strioc.ic_dp = buf; in t_kbind() 106 strioc.ic_len = (int)TBINDREQSZ + bind_req->ADDR_length; in t_kbind() 117 error = strdoioctl(vp->v_stream, &strioc, FNATIVE, K_TO_K, fp->f_cred, in t_kbind() 130 bind_ack = (struct T_bind_ack *)strioc.ic_dp; in t_kbind() 131 if (strioc.ic_len < TBINDACKSZ || bind_ack->ADDR_length == 0) { in t_kbind()
|
H A D | t_koptmgmt.c | 66 struct strioctl strioc; in t_koptmgmt() local 109 strioc.ic_cmd = TI_OPTMGMT; in t_koptmgmt() 110 strioc.ic_timout = 0; in t_koptmgmt() 111 strioc.ic_dp = ctlbuf; in t_koptmgmt() 112 strioc.ic_len = ctlsize; in t_koptmgmt() 114 error = strdoioctl(vp->v_stream, &strioc, FNATIVE, K_TO_K, in t_koptmgmt() 127 if (strioc.ic_len < sizeof (struct T_optmgmt_ack)) { in t_koptmgmt()
|
H A D | t_kopen.c | 75 struct strioctl strioc; in t_kopen() local 213 strioc.ic_cmd = TI_GETINFO; in t_kopen() 214 strioc.ic_timout = 0; in t_kopen() 215 strioc.ic_dp = (char *)&inforeq; in t_kopen() 216 strioc.ic_len = (int)sizeof (struct T_info_req); in t_kopen() 218 error = strdoioctl(vp->v_stream, &strioc, FNATIVE, K_TO_K, cr, &retval); in t_kopen() 240 if (strioc.ic_len != sizeof (struct T_info_ack)) { in t_kopen() 246 strioc.ic_len); in t_kopen()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | ucredsys.c | 70 struct strioctl strioc; in getpeerucred() local 76 strioc.ic_cmd = _I_GETPEERCRED; in getpeerucred() 77 strioc.ic_timout = INFTIM; in getpeerucred() 78 strioc.ic_len = (int)sizeof (k_peercred_t); in getpeerucred() 79 strioc.ic_dp = (char *)&kpc; in getpeerucred() 81 err = strdoioctl(vp->v_stream, &strioc, FNATIVE|FKIOCTL, in getpeerucred()
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | svc_gen.c | 113 struct strioctl strioc; in svc_tli_kcreate() local 143 strioc.ic_cmd = TI_GETINFO; in svc_tli_kcreate() 144 strioc.ic_timout = -1; in svc_tli_kcreate() 145 strioc.ic_len = sizeof (tinfo); in svc_tli_kcreate() 146 strioc.ic_dp = (char *)&tinfo; in svc_tli_kcreate() 149 error = strioctl(fp->f_vnode, I_STR, (intptr_t)&strioc, 0, K_TO_K, in svc_tli_kcreate()
|
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_alloc.c | 54 struct strioctl strioc; in _tx_alloc() local 79 strioc.ic_cmd = TI_GETINFO; in _tx_alloc() 80 strioc.ic_timout = -1; in _tx_alloc() 81 strioc.ic_len = (int)sizeof (struct T_info_req); in _tx_alloc() 82 strioc.ic_dp = (char *)&info; in _tx_alloc() 84 retval = ioctl(fd, I_STR, &strioc); in _tx_alloc() 95 if (strioc.ic_len != (int)sizeof (struct T_info_ack)) { in _tx_alloc()
|
H A D | _utility.c | 477 struct strioctl strioc; in _t_do_ioctl() local 479 strioc.ic_cmd = cmd; in _t_do_ioctl() 480 strioc.ic_timout = -1; in _t_do_ioctl() 481 strioc.ic_len = size; in _t_do_ioctl() 482 strioc.ic_dp = buf; in _t_do_ioctl() 484 if ((retval = ioctl(fd, I_STR, &strioc)) < 0) { in _t_do_ioctl() 496 *retlenp = strioc.ic_len; in _t_do_ioctl()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | streamio.c | 243 struct strioctl strioc; in xpg4_fixup() local 270 strioc.ic_cmd = PTSSTTY; in xpg4_fixup() 271 strioc.ic_timout = 0; in xpg4_fixup() 272 strioc.ic_len = 0; in xpg4_fixup() 273 strioc.ic_dp = NULL; in xpg4_fixup() 275 (void) strdoioctl(stp, &strioc, FNATIVE, K_TO_K, crp, &rval); in xpg4_fixup() 3285 struct strioctl strioc; in strioctl() local 3425 strioc.ic_cmd = cmd; in strioctl() 3426 strioc.ic_timout = INFTIM; in strioctl() 3436 strioc.ic_len = sizeof (int); in strioctl() [all …]
|
H A D | strsubr.c | 1733 struct strioctl strioc; in mlink_file() local 1811 strioc.ic_cmd = cmd; in mlink_file() 1812 strioc.ic_timout = INFTIM; in mlink_file() 1813 strioc.ic_len = sizeof (struct linkblk); in mlink_file() 1814 strioc.ic_dp = (char *)&linkp->li_lblk; in mlink_file() 1901 error = strdoioctl(stp, &strioc, FNATIVE, in mlink_file() 2025 struct strioctl strioc; in munlink() local 2051 strioc.ic_cmd = I_UNLINK; in munlink() 2053 strioc.ic_cmd = I_PUNLINK; in munlink() 2054 strioc.ic_timout = INFTIM; in munlink() [all …]
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | ti_opts.c | 82 struct strioctl strioc; in __rpc_negotiate_uid() local 89 strioc.ic_cmd = TL_IOC_UCREDOPT; in __rpc_negotiate_uid() 90 strioc.ic_timout = -1; in __rpc_negotiate_uid() 91 strioc.ic_len = (int)sizeof (unsigned int); in __rpc_negotiate_uid() 92 strioc.ic_dp = (char *)&set; in __rpc_negotiate_uid() 94 if (ioctl(fd, I_STR, &strioc) == -1 && in __rpc_negotiate_uid()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | consconfig_dacf.c | 560 struct strioctl strioc; in consconfig_get_polledio() local 566 strioc.ic_cmd = CONSOPENPOLLEDIO; in consconfig_get_polledio() 567 strioc.ic_timout = INFTIM; in consconfig_get_polledio() 568 strioc.ic_len = sizeof (polled_io); in consconfig_get_polledio() 569 strioc.ic_dp = (char *)&polled_io; in consconfig_get_polledio() 576 err = ldi_ioctl(lh, I_STR, (intptr_t)&strioc, FKIOCTL, kcred, &rval); in consconfig_get_polledio() 819 struct strioctl strioc; in cons_build_upper_layer() local 938 strioc.ic_cmd = WC_OPEN_FB; in cons_build_upper_layer() 939 strioc.ic_timout = INFTIM; in cons_build_upper_layer() 940 strioc.ic_len = strlen(sp->cons_fb_path) + 1; in cons_build_upper_layer() [all …]
|
/illumos-gate/usr/src/uts/common/io/softmac/ |
H A D | softmac_main.c | 1318 struct strioctl strioc; in softmac_lower_setup() local 1369 strioc.ic_cmd = SMAC_IOC_START; in softmac_lower_setup() 1370 strioc.ic_timout = INFTIM; in softmac_lower_setup() 1371 strioc.ic_len = sizeof (start_arg); in softmac_lower_setup() 1372 strioc.ic_dp = (char *)&start_arg; in softmac_lower_setup() 1374 if ((err = ldi_ioctl(lh, I_STR, (intptr_t)&strioc, FKIOCTL, in softmac_lower_setup()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfs_tbind.c | 141 struct strioctl strioc; in nfslib_transport_open() local 186 strioc.ic_cmd = RPC_SERVER; in nfslib_transport_open() 187 strioc.ic_dp = (char *)0; in nfslib_transport_open() 188 strioc.ic_len = 0; in nfslib_transport_open() 189 strioc.ic_timout = -1; in nfslib_transport_open() 192 if (ioctl(fd, I_STR, &strioc) < 0) { in nfslib_transport_open()
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs_server.c | 373 struct strioctl strioc; in nfs_srv_set_sc_versions() local 380 strioc.ic_cmd = TI_GETINFO; in nfs_srv_set_sc_versions() 381 strioc.ic_timout = -1; in nfs_srv_set_sc_versions() 382 strioc.ic_len = sizeof (tinfo); in nfs_srv_set_sc_versions() 383 strioc.ic_dp = (char *)&tinfo; in nfs_srv_set_sc_versions() 386 error = strioctl(fp->f_vnode, I_STR, (intptr_t)&strioc, 0, K_TO_K, in nfs_srv_set_sc_versions()
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prsubr.c | 3043 struct strioctl strioc; in prgetfdinfo() local 3050 strioc.ic_cmd = _I_GETPEERCRED; in prgetfdinfo() 3051 strioc.ic_timout = INFTIM; in prgetfdinfo() 3052 strioc.ic_len = (int)sizeof (k_peercred_t); in prgetfdinfo() 3053 strioc.ic_dp = (char *)&kpc; in prgetfdinfo() 3055 error = strdoioctl(vp->v_stream, &strioc, FNATIVE | FKIOCTL, in prgetfdinfo()
|