Home
last modified time | relevance | path

Searched refs:strioc (Results 1 – 17 of 17) sorted by relevance

/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kunbind.c76 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 Dt_kgtstate.c70 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 Dt_kbind.c74 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 Dt_koptmgmt.c66 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 Dt_kopen.c75 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 Ducredsys.c70 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 Dsvc_gen.c113 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 Dt_alloc.c54 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.c477 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 Dstreamio.c243 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()
3583 strioc.ic_len = 0; in strioctl()
3593 strioc.ic_cmd = cmd; in strioctl()
3616 if ((strioc.ic_len < 0) || (strioc.ic_timout < -1)) in strioctl()
4568 strioc.ic_len = 0; in strioctl()
4602 strioc.ic_len = 0; in strioctl()
[all …]
H A Dstrsubr.c1734 struct strioctl strioc; in mlink_file() local
1812 strioc.ic_cmd = cmd; in mlink_file()
1813 strioc.ic_timout = INFTIM; in mlink_file()
1814 strioc.ic_len = sizeof (struct linkblk); in mlink_file()
1815 strioc.ic_dp = (char *)&linkp->li_lblk; in mlink_file()
2026 struct strioctl strioc; in munlink() local
2052 strioc.ic_cmd = I_UNLINK; in munlink()
2054 strioc.ic_cmd = I_PUNLINK; in munlink()
2055 strioc.ic_timout = INFTIM; in munlink()
2056 strioc.ic_len = sizeof (struct linkblk); in munlink()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dti_opts.c82 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 Dconsconfig_dacf.c560 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()
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()
941 strioc.ic_dp = sp->cons_fb_path; in cons_build_upper_layer()
[all …]
/illumos-gate/usr/src/uts/common/io/softmac/
H A Dsoftmac_main.c1318 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 Dnfs_tbind.c141 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 Dnfs_server.c373 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 Dprsubr.c3043 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()