Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 25 of 157) sorted by relevance

1234567

/illumos-gate/usr/src/cmd/bhyve/
H A Diov.c73 count_iov(const struct iovec *iov, int niov) in count_iov() argument
79 total += iov[i].iov_len; in count_iov()
94 if (toseek <= iov[i].iov_len) { in truncate_iov()
95 iov[i].iov_len = toseek; in truncate_iov()
108 total = count_iov(iov, niov); in iov_to_buf()
114 memcpy(*buf + ptr, iov[i].iov_base, iov[i].iov_len); in iov_to_buf()
115 ptr += iov[i].iov_len; in iov_to_buf()
137 seek_iov(iov, niov, diov, &ndiov, seek); in buf_to_iov()
138 iov = diov; in buf_to_iov()
143 len = MIN(iov[i].iov_len, buflen - off); in buf_to_iov()
[all …]
H A Dnet_backends.c378 iov, iovcnt, 0); in tap_recv()
803 count_iov(iov, iovcnt))); in netmap_send()
860 iov_frag_buf = iov->iov_base; in netmap_recv()
861 iov_frag_size = iov->iov_len; in netmap_recv()
890 iov++; in netmap_recv()
898 iov_frag_buf = iov->iov_base; in netmap_recv()
1107 len = iov[0].iov_len; in be_dlpi_send()
1184 iov, iovcnt, 0); in be_dlpi_recv()
1192 len = iov[0].iov_len; in be_dlpi_recv()
1490 struct iovec iov; in netbe_rx_discard() local
[all …]
H A Diov.h38 void truncate_iov(struct iovec *iov, int *niov, size_t length);
39 size_t count_iov(const struct iovec *iov, int niov);
40 ssize_t iov_to_buf(const struct iovec *iov, int niov, void **buf);
41 ssize_t buf_to_iov(const void *buf, size_t buflen, const struct iovec *iov,
/illumos-gate/usr/src/uts/common/os/
H A Dmove.c65 struct iovec *iov; in uiomove() local
70 iov = uio->uio_iov; in uiomove()
123 struct iovec *iov; in uio_prefaultpages() local
129 iov = uio->uio_iov; in uio_prefaultpages()
136 iov++; in uio_prefaultpages()
176 iov++; in uio_prefaultpages()
188 struct iovec *iov; in uiocopy() local
196 for (iov = uio->uio_iov; n && iovcnt; iov++, iovcnt--) { in uiocopy()
448 iovec_t *iov; in uioamove() local
643 iov->iov_base, iov->iov_len, S_WRITE)) != 0) { in uioainit()
[all …]
/illumos-gate/usr/src/lib/libslp/clib/
H A DDAAdvert.c45 struct iovec iov[5]; in slp_unpackDAAdvert() local
64 iov[0].iov_base = reply + off; in slp_unpackDAAdvert()
72 iov[0].iov_len = off - tmp_off; in slp_unpackDAAdvert()
75 iov[1].iov_base = reply + off; in slp_unpackDAAdvert()
80 iov[1].iov_len = off - tmp_off; in slp_unpackDAAdvert()
83 iov[3].iov_base = reply + off; in slp_unpackDAAdvert()
88 iov[3].iov_len = off - tmp_off; in slp_unpackDAAdvert()
91 iov[2].iov_base = reply + off; in slp_unpackDAAdvert()
96 iov[2].iov_len = off - tmp_off; in slp_unpackDAAdvert()
99 iov[4].iov_base = reply + off; in slp_unpackDAAdvert()
[all …]
H A DSAAdvert.c45 struct iovec iov[3]; in slp_unpackSAAdvert() local
56 iov[0].iov_base = reply + off; in slp_unpackSAAdvert()
61 iov[0].iov_len = off - tmp_off; in slp_unpackSAAdvert()
64 iov[2].iov_base = reply + off; in slp_unpackSAAdvert()
69 iov[2].iov_len = off - tmp_off; in slp_unpackSAAdvert()
72 iov[1].iov_base = reply + off; in slp_unpackSAAdvert()
77 iov[1].iov_len = off - tmp_off; in slp_unpackSAAdvert()
84 if ((err = slp_verify(iov, 3, in slp_unpackSAAdvert()
H A DSLPFindSrvTypes.c147 if (!(msg->iov = calloc(6, sizeof (*(msg->iov))))) { in slp_packSrvTypeRqst()
167 free(msg->iov); in slp_packSrvTypeRqst()
175 msg->iov[1].iov_base = msg->msg; in slp_packSrvTypeRqst()
176 msg->iov[1].iov_len = 2; in slp_packSrvTypeRqst()
180 msg->iov[4].iov_base = msg->msg + 2; in slp_packSrvTypeRqst()
181 msg->iov[4].iov_len = 2; in slp_packSrvTypeRqst()
184 msg->prlist = &(msg->iov[2]); in slp_packSrvTypeRqst()
185 msg->scopes = &(msg->iov[5]); in slp_packSrvTypeRqst()
190 msg->iov[3].iov_base = msg->msg + len; in slp_packSrvTypeRqst()
198 msg->iov[3].iov_len = len - tmplen; in slp_packSrvTypeRqst()
[all …]
H A DSLPFindSrvs.c164 struct iovec iov[1]; in slp_unpackSrvReply() local
167 iov[0].iov_base = url_tbv; in slp_unpackSrvReply()
168 iov[0].iov_len = tbv_len; in slp_unpackSrvReply()
170 if (slp_verify(iov, 1, in slp_unpackSrvReply()
351 if (!(msg->iov = calloc(7, sizeof (*(msg->iov))))) { in slp_packSrvRqst()
365 free(msg->iov); in slp_packSrvRqst()
374 msg->iov[1].iov_len = 2; in slp_packSrvRqst()
379 msg->iov[4].iov_len = 2; in slp_packSrvRqst()
382 msg->prlist = &(msg->iov[2]); in slp_packSrvRqst()
383 msg->scopes = &(msg->iov[5]); in slp_packSrvRqst()
[all …]
H A DSLPFindAttrs.c155 struct iovec iov[1]; in slp_UnpackAttrReply() local
157 iov[0].iov_base = attr_tbv; in slp_UnpackAttrReply()
158 iov[0].iov_len = tbv_len; in slp_UnpackAttrReply()
160 if (slp_verify(iov, 1, in slp_UnpackAttrReply()
322 if (!(msg->iov = calloc(7, sizeof (*(msg->iov))))) { in slp_packAttrRqst()
336 free(msg->iov); in slp_packAttrRqst()
345 msg->iov[1].iov_len = 2; in slp_packAttrRqst()
350 msg->iov[4].iov_len = 2; in slp_packAttrRqst()
353 msg->prlist = &(msg->iov[2]); in slp_packAttrRqst()
354 msg->scopes = &(msg->iov[5]); in slp_packAttrRqst()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libmilter/
H A Dcomm.c243 struct iovec *iov;
256 iov++;
280 n = writev(fd, iov, iovcnt);
293 iov[i].iov_base = (char *)iov[i].iov_base + n;
297 n -= (int) iov[i].iov_len;
298 iov[i].iov_len = 0;
331 struct iovec iov[2]; local
343 iov[0].iov_base = (void *) data;
344 iov[0].iov_len = sl;
348 iov[1].iov_base = (void *) buf;
[all …]
/illumos-gate/usr/src/test/os-tests/tests/
H A Dwritev.c47 struct iovec iov[IOV_MAX + 1]; in main() local
66 iov[i].iov_base = data + i * 5; in main()
67 iov[i].iov_len = DATA_LEN; in main()
70 ssize_t written = writev(fd, iov, IOV_MAX + 1); in main()
75 written = writev(fd, iov, IOV_MAX); in main()
82 ssize_t read = preadv(fd, iov, IOV_MAX, 0); in main()
97 if ((written = pwritev(fd, iov, 1, off)) != DATA_LEN) in main()
102 if ((read = preadv(fd, iov, 1, off)) != DATA_LEN) in main()
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Duio.c32 struct iovec *iov; in uiomove() local
36 iov = uio->uio_iov; in uiomove()
37 cnt = MIN(iov->iov_len, n); in uiomove()
51 bcopy(p, iov->iov_base, cnt); in uiomove()
53 bcopy(iov->iov_base, p, cnt); in uiomove()
56 iov->iov_base += cnt; in uiomove()
57 iov->iov_len -= cnt; in uiomove()
/illumos-gate/usr/src/uts/intel/io/viona/
H A Dviona_rx.c220 if (iov[0].iov_len < hdr_sz) { in viona_recv_plain()
226 bzero(iov[0].iov_base, iov[0].iov_len); in viona_recv_plain()
237 if (iov[0].iov_len > hdr_sz) { in viona_recv_plain()
239 len = iov[0].iov_len - hdr_sz; in viona_recv_plain()
247 len = iov[i].iov_len; in viona_recv_plain()
321 if (iov[0].iov_len < hdr_sz) { in viona_recv_merged()
327 bzero(iov[0].iov_base, iov[0].iov_len); in viona_recv_merged()
329 uelem[0].len = iov[0].iov_len; in viona_recv_merged()
344 if (iov[0].iov_len > hdr_sz) { in viona_recv_merged()
357 buf = iov[i].iov_base; in viona_recv_merged()
[all …]
/illumos-gate/usr/src/lib/libsasl/lib/
H A Dcheckpw.c371 iov++; in retry_writev()
391 iov[i].iov_base = (char *)iov[i].iov_base + n; in retry_writev()
392 iov[i].iov_len -= n; in retry_writev()
395 n -= iov[i].iov_len; in retry_writev()
396 iov[i].iov_len = 0; in retry_writev()
417 struct iovec iov[10]; in pwcheck_verify_password() local
439 iov[0].iov_base = (char *)userid; in pwcheck_verify_password()
444 retry_writev(s, iov, 2); in pwcheck_verify_password()
618 struct iovec iov[8]; in saslauthd_verify_password() local
620 iov[0].iov_len = query_end - query; in saslauthd_verify_password()
[all …]
/illumos-gate/usr/src/test/os-tests/tests/sockfs/
H A Ddrop_priv.c99 struct iovec iov; in server() local
103 iov = (struct iovec) { in server()
109 .msg_iov = &iov, in server()
133 struct iovec iov; in non_priv_send() local
152 iov = (struct iovec) { in non_priv_send()
160 .msg_iov = &iov, in non_priv_send()
283 struct iovec iov; in main() local
292 iov = (struct iovec) { in main()
312 .msg_iov = &iov, in main()
H A Dsockpair.c47 struct iovec iov; in server() local
51 iov = (struct iovec) { in server()
57 .msg_iov = &iov, in server()
111 struct iovec iov; in runtest() local
120 iov = (struct iovec) { in runtest()
126 .msg_iov = &iov, in runtest()
H A Ddgram.c59 struct iovec iov; in server() local
63 iov = (struct iovec) { in server()
69 .msg_iov = &iov, in server()
146 struct iovec iov; in main() local
155 iov = (struct iovec) { in main()
164 .msg_iov = &iov, in main()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_directio.c340 iovec_t *iov; in ufs_directio_write() local
420 iov = uio->uio_iov; in ufs_directio_write()
446 iov++; in ufs_directio_write()
631 iov = uio->uio_iov; in ufs_directio_write()
693 iov->iov_len -= nbytes; in ufs_directio_write()
694 iov->iov_base += nbytes; in ufs_directio_write()
808 iovec_t *iov; in ufs_directio_read() local
844 iov = uio->uio_iov; in ufs_directio_read()
935 iov = uio->uio_iov; in ufs_directio_read()
1007 iov->iov_len -= nbytes; in ufs_directio_read()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfput.c46 struct sm_iov iov; variable
49 iov.iov_base = (void *) s;
50 iov.iov_len = uio.uio_resid = strlen(s);
51 uio.uio_iov = &iov;
H A Dfwrite.c48 struct sm_iov iov; variable
58 iov.iov_base = (void *) buf;
59 uio.uio_resid = iov.iov_len = size;
60 uio.uio_iov = &iov;
H A Dfvwrite.c52 p = iov->iov_base; \
53 len = iov->iov_len; \
54 iov++; \
65 register struct sm_iov *iov; variable
84 iov = uio->uio_iov;
85 p = iov->iov_base;
86 len = iov->iov_len;
87 iov++;
/illumos-gate/usr/src/common/crypto/modes/
H A Dmodes.c99 iovec_t *iov; in crypto_get_ptrs() local
102 iov = &out->cd_raw; in crypto_get_ptrs()
103 if ((offset + amt) <= iov->iov_len) { in crypto_get_ptrs()
105 *out_data_1 = (uint8_t *)iov->iov_base + offset; in crypto_get_ptrs()
115 iovec_t *iov; in crypto_get_ptrs() local
122 iov = &uio->uio_iov[vec_idx]; in crypto_get_ptrs()
123 p = (uint8_t *)iov->iov_base + offset; in crypto_get_ptrs()
126 if (offset + amt <= iov->iov_len) { in crypto_get_ptrs()
133 *out_data_1_len = iov->iov_len - offset; in crypto_get_ptrs()
137 iov = &uio->uio_iov[vec_idx]; in crypto_get_ptrs()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_net.c608 iovec_t iov[ISCSI_MAX_IOVEC]; in iscsi_net_recvhdr() local
629 iov[0].iov_base = (char *)ihp; in iscsi_net_recvhdr()
633 msg.msg_iov = iov; in iscsi_net_recvhdr()
665 iov[iovlen].iov_base = adhdr; in iscsi_net_recvhdr()
666 iov[iovlen].iov_len = adhdr_length; in iscsi_net_recvhdr()
690 msg.msg_iov = iov; in iscsi_net_recvhdr()
737 struct iovec iov[3]; in iscsi_net_recvdata() local
771 iov[0].iov_base = (char *)data; in iscsi_net_recvdata()
772 iov[0].iov_len = dlength; in iscsi_net_recvdata()
778 iov[iovlen].iov_len = pad_len; in iscsi_net_recvdata()
[all …]
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_hostconf.c331 struct iovec iov[IOV_MAX]; in write_hostconf() local
350 iov[iovlen].iov_base = (caddr_t)&magic; in write_hostconf()
351 explen += iov[iovlen++].iov_len = sizeof (magic); in write_hostconf()
352 iov[iovlen].iov_base = (caddr_t)&relative_to; in write_hostconf()
353 explen += iov[iovlen++].iov_len = sizeof (relative_to); in write_hostconf()
355 iov[iovlen].iov_base = (caddr_t)&pl[i]->len; in write_hostconf()
356 explen += iov[iovlen++].iov_len = sizeof (pl[i]->len); in write_hostconf()
357 iov[iovlen].iov_base = (caddr_t)pl[i]->pkt; in write_hostconf()
358 explen += iov[iovlen++].iov_len = pl[i]->len; in write_hostconf()
361 retval = writev(fd, iov, iovlen); in write_hostconf()
/illumos-gate/usr/src/uts/common/inet/nca/
H A Dncalogd.h136 } iov[NCA_FIOV_SZ]; /* The iov's for each desc[] */ member
140 #define nca_fio_vp(fiop) (fiop)->iov[(fiop)->hdr.ix].vp
141 #define nca_fio_name(fiop) (fiop)->iov[(fiop)->hdr.ix].name
142 #define nca_fio_size(fiop) (fiop)->iov[(fiop)->hdr.ix].size
143 #define nca_fio_offset(fiop) (fiop)->iov[(fiop)->hdr.ix].offset
144 #define nca_fio_file(fiop) (fiop)->iov[(fiop)->hdr.ix].file

1234567