/freebsd-current/contrib/lib9p/transport/ |
H A D | socket.c | 197 struct iovec iov; local 205 iov.iov_base = buf; 206 iov.iov_len = length; 207 l9p_connection_recv(sc->ls_conn, &iov, 1, NULL); 271 l9p_socket_get_response_buffer(struct l9p_request *req, struct iovec *iov, argument 278 iov[0].iov_base = buf; 279 iov[0].iov_len = size; 287 const struct iovec *iov, const size_t niov __unused, const size_t iolen, 295 iov[0].iov_base, iolen); 297 if (xwrite(sc->ls_fd, iov[ 286 l9p_socket_send_response(struct l9p_request *req __unused, const struct iovec *iov, const size_t niov __unused, const size_t iolen, void *arg) argument 307 l9p_socket_drop_response(struct l9p_request *req __unused, const struct iovec *iov, size_t niov __unused, void *arg __unused) argument [all...] |
/freebsd-current/usr.sbin/autofs/ |
H A D | automount.c | 103 struct iovec *iov = NULL; local 113 build_iovec(&iov, &iovlen, "fstype", 115 build_iovec(&iov, &iovlen, "fspath", 117 build_iovec(&iov, &iovlen, "from", 119 build_iovec(&iov, &iovlen, "errmsg", 126 build_iovec(&iov, &iovlen, "master_options", 128 build_iovec(&iov, &iovlen, "master_prefix", 131 error = nmount(iov, iovlen, 0); 233 struct iovec *iov = NULL; local 240 build_iovec(&iov, [all...] |
/freebsd-current/usr.sbin/bhyve/ |
H A D | net_backends.c | 65 #include "iov.h" 153 tap_send(struct net_backend *be, const struct iovec *iov, int iovcnt) argument 155 return (writev(be->fd, iov, iovcnt)); 189 tap_recv(struct net_backend *be, const struct iovec *iov, int iovcnt) argument 200 iov, iovcnt, 0); 208 ret = readv(be->fd, iov, iovcnt); 419 netbe_send(struct net_backend *be, const struct iovec *iov, int iovcnt) argument 422 return (be->send(be, iov, iovcnt)); 438 netbe_recv(struct net_backend *be, const struct iovec *iov, int iovcnt) argument 441 return (be->recv(be, iov, iovcn 458 struct iovec iov; local [all...] |
H A D | net_backend_netmap.c | 37 #include "iov.h" 172 netmap_send(struct net_backend *be, const struct iovec *iov, argument 187 EPRINTLN("No space, drop %zu bytes", count_iov(iov, iovcnt)); 195 uint8_t *iov_frag_buf = iov[j].iov_base; 196 int iov_frag_size = iov[j].iov_len; 229 count_iov(iov, iovcnt)); 272 netmap_recv(struct net_backend *be, const struct iovec *iov, int iovcnt) argument 286 iov_frag_buf = iov->iov_base; 287 iov_frag_size = iov->iov_len; 316 iov [all...] |
H A D | net_backends.h | 50 ssize_t netbe_send(net_backend_t *be, const struct iovec *iov, int iovcnt); 52 ssize_t netbe_recv(net_backend_t *be, const struct iovec *iov, int iovcnt);
|
H A D | pci_virtio_block.c | 307 struct iovec iov[BLOCKIF_IOV_MAX + 2]; local 310 n = vq_getchain(vq, iov, BLOCKIF_IOV_MAX + 2, &req); 315 * The remaining iov's are the actual data I/O vectors. 324 assert(iov[0].iov_len == sizeof(struct virtio_blk_hdr)); 325 vbh = (struct virtio_blk_hdr *)iov[0].iov_base; 326 memcpy(&io->io_req.br_iov, &iov[1], sizeof(struct iovec) * (n - 2)); 329 io->io_status = (uint8_t *)iov[--n].iov_base; 331 assert(iov[n].iov_len == 1); 351 iolen += iov[i].iov_len; 372 if (iov[ [all...] |
H A D | pci_virtio_9p.c | 146 pci_vt9p_get_buffer(struct l9p_request *req, struct iovec *iov, size_t *niov, argument 152 memcpy(iov, preq->vsr_iov + preq->vsr_respidx, 159 pci_vt9p_send(struct l9p_request *req, const struct iovec *iov __unused, 176 pci_vt9p_drop(struct l9p_request *req, const struct iovec *iov __unused, 192 struct iovec iov[VT9P_MAX_IOV]; local 201 n = vq_getchain(vq, iov, VT9P_MAX_IOV, &req); 206 preq->vsr_iov = iov; 212 "len=%zu\r\n", i, iov[i].iov_base, 213 iov[i].iov_len)); 216 l9p_connection_recv(sc->vsc_conn, iov, pre [all...] |
/freebsd-current/contrib/netbsd-tests/net/net/ |
H A D | t_pktinfo.c | 103 struct iovec iov; local 111 msg.msg_iov = &iov; 112 memset(&iov, 0, sizeof(iov)); 113 iov.iov_base = buf; 114 iov.iov_len = sizeof(buf);
|
/freebsd-current/sys/arm/arm/ |
H A D | mem.c | 87 struct iovec *iov; local 92 iov = uio->uio_iov; 93 if (iov->iov_len == 0) { 120 c = (u_int)(PAGE_SIZE - ((int)iov->iov_base & PAGE_MASK)); 122 c = min(c, (u_int)iov->iov_len); 129 c = iov->iov_len;
|
/freebsd-current/lib/libc/db/recno/ |
H A D | rec_close.c | 105 struct iovec iov[2]; local 154 iov[1].iov_base = &t->bt_bval; 155 iov[1].iov_len = 1; 159 iov[0].iov_base = data.data; 160 iov[0].iov_len = data.size; 161 if (_writev(t->bt_rfd, iov, 2) != (ssize_t)(data.size + 1))
|
/freebsd-current/sys/dev/vmware/vmci/ |
H A D | vmci_kernel_api_1.h | 62 ssize_t vmci_qpair_enquev(struct vmci_qpair *qpair, void *iov, size_t iov_size, 64 ssize_t vmci_qpair_dequev(struct vmci_qpair *qpair, void *iov, size_t iov_size, 66 ssize_t vmci_qpair_peekv(struct vmci_qpair *qpair, void *iov, size_t iov_size,
|
/freebsd-current/tools/regression/sockets/unix_cmsg/ |
H A D | t_sockcred.c | 43 struct iovec iov[1]; local 51 uc_msghdr_init_client(&msghdr, iov, NULL, 0, 0, 0); 72 struct iovec iov[1]; local 123 uc_msghdr_init_server(&msghdr, iov, cmsg_data, cmsg_size);
|
H A D | uc_common.h | 68 void uc_msghdr_init_server(struct msghdr *msghdr, struct iovec *iov, 70 void uc_msghdr_init_client(struct msghdr *msghdr, struct iovec *iov,
|
/freebsd-current/sys/riscv/riscv/ |
H A D | mem.c | 50 struct iovec *iov; local 60 iov = uio->uio_iov; 61 if (iov->iov_len == 0) { 71 cnt = ulmin(iov->iov_len, PAGE_SIZE - (u_int)off);
|
/freebsd-current/sys/arm64/arm64/ |
H A D | mem.c | 48 struct iovec *iov; local 59 iov = uio->uio_iov; 60 if (iov->iov_len == 0) { 70 cnt = ulmin(iov->iov_len, PAGE_SIZE - (u_int)off);
|
/freebsd-current/crypto/heimdal/lib/gssapi/krb5/ |
H A D | cfx.c | 206 _gk_find_buffer(gss_iov_buffer_desc *iov, int iov_count, OM_uint32 type) argument 211 if (type == GSS_IOV_BUFFER_TYPE(iov[i].type)) 212 return &iov[i]; 282 gss_iov_buffer_desc *iov, 297 header = _gk_find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_HEADER); 303 padding = _gk_find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_PADDING); 308 trailer = _gk_find_buffer(iov, iov_count, GSS_IOV_BUFFER_TYPE_TRAILER); 322 switch (GSS_IOV_BUFFER_TYPE(iov[i].type)) { 324 size += iov[i].buffer.length; 515 switch (GSS_IOV_BUFFER_TYPE(iov[ 645 unrotate_iov(OM_uint32 *minor_status, size_t rrc, gss_iov_buffer_desc *iov, int iov_count) argument 1017 _gssapi_wrap_iov_length_cfx(OM_uint32 *minor_status, gsskrb5_ctx ctx, krb5_context context, int conf_req_flag, gss_qop_t qop_req, int *conf_state, gss_iov_buffer_desc *iov, int iov_count) argument [all...] |
/freebsd-current/crypto/heimdal/lib/krb5/ |
H A D | changepw.c | 83 struct iovec iov[3]; local 128 msghdr.msg_iov = iov; 129 msghdr.msg_iovlen = sizeof(iov)/sizeof(*iov); 135 iov[0].iov_base = (void*)header; 136 iov[0].iov_len = 6; 137 iov[1].iov_base = ap_req_data.data; 138 iov[1].iov_len = ap_req_data.length; 139 iov[2].iov_base = krb_priv_data.data; 140 iov[ 177 struct iovec iov[3]; local [all...] |
/freebsd-current/contrib/sendmail/libsm/ |
H A D | fvwrite.c | 50 p = iov->iov_base; \ 51 len = iov->iov_len; \ 52 iov++; \ 63 register struct sm_iov *iov; local 82 iov = uio->uio_iov; 83 p = iov->iov_base; 84 len = iov->iov_len; 85 iov++;
|
/freebsd-current/lib/libopenbsd/ |
H A D | imsg.c | 55 struct iovec iov; local 63 iov.iov_base = ibuf->r.buf + ibuf->r.wpos; 64 iov.iov_len = sizeof(ibuf->r.buf) - ibuf->r.wpos; 65 msg.msg_iov = &iov; 186 pid_t pid, int fd, const struct iovec *iov, int iovcnt) 192 datalen += iov[i].iov_len; 198 if (imsg_add(wbuf, iov[i].iov_base, iov[i].iov_len) == -1) 185 imsg_composev(struct imsgbuf *ibuf, u_int32_t type, u_int32_t peerid, pid_t pid, int fd, const struct iovec *iov, int iovcnt) argument
|
/freebsd-current/sys/powerpc/powerpc/ |
H A D | mem.c | 91 struct iovec *iov; local 105 iov = uio->uio_iov; 106 if (iov->iov_len == 0) { 117 cnt = PAGE_SIZE - ((vm_offset_t)iov->iov_base & 120 cnt = min(cnt, iov->iov_len); 147 + iov->iov_len); 168 !kernacc((void *) va, iov->iov_len, prot)) { 173 error = uiomove((void *)va, iov->iov_len, uio);
|
/freebsd-current/sbin/mount/ |
H A D | mntopts.h | 107 void build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val, size_t len); 108 void build_iovec_argf(struct iovec **iov, int *iovlen, const char *name, const char *fmt, ...);
|
/freebsd-current/tests/sys/aio/ |
H A D | aio_test.c | 336 struct iovec iov[2]; local 346 iov[0].iov_base = ac->ac_buffer + len1; 347 iov[0].iov_len = len0; 348 iov[1].iov_base = ac->ac_buffer; 349 iov[1].iov_len = len1; 350 aio.aio_iov = iov; 403 struct iovec iov[2]; local 413 iov[0].iov_base = ac->ac_buffer + len1; 414 iov[0].iov_len = len0; 415 iov[ 1183 struct iovec iov[2]; local 1617 struct iovec iov[1]; local 1655 struct iovec iov[1]; local 1692 struct iovec iov[2]; local 1838 struct iovec *iov; local 1954 struct iovec iov[3]; local [all...] |
/freebsd-current/sys/netinet/ |
H A D | sctp_syscalls.c | 217 struct iovec iov[1]; local 247 iov[0].iov_base = uap->msg; 248 iov[0].iov_len = uap->mlen; 261 auio.uio_iov = iov; 317 struct iovec *iov, *tiov; local 345 error = freebsd32_copyiniov((struct iovec32 *)uap->iov, 346 uap->iovlen, &iov, EMSGSIZE); 349 error = copyiniov(uap->iov, uap->iovlen, &iov, EMSGSIZE); 368 auio.uio_iov = iov; 428 struct iovec *iov, *tiov; local [all...] |
/freebsd-current/contrib/netbsd-tests/modules/ |
H A D | t_modctl.c | 87 struct iovec iov; local 92 iov.iov_base = malloc(len); 93 iov.iov_len = len; 97 if (modctl(MODCTL_STAT, &iov) != 0) { 103 if (len >= iov.iov_len) 105 free(iov.iov_base); 106 len = iov.iov_len; 110 len = iov.iov_len / sizeof(modstat_t); 111 for (ms = (modstat_t *)iov.iov_base; len != 0 && !found; 120 free(iov [all...] |
/freebsd-current/sbin/mount_fusefs/ |
H A D | mount_fusefs.c | 120 struct iovec *iov; local 155 iov = NULL; 298 build_iovec(&iov, &iovlen, mo->m_option, mv->mv_value, mv->mv_len); 304 build_iovec(&iov, &iovlen, mo->m_option, 312 build_iovec(&iov, &iovlen, uscore_opt, 422 build_iovec(&iov, &iovlen, "fstype", __DECONST(void *, "fusefs"), -1); 423 build_iovec(&iov, &iovlen, "fspath", mntpath, -1); 424 build_iovec(&iov, &iovlen, "from", dev, -1); 425 build_iovec(&iov, &iovlen, "fd", fdstr, -1); 430 if (nmount(iov, iovle [all...] |