Lines Matching defs:iov
47 static void iovec_advance(struct iovec iov[], unsigned *idx, size_t size) {
50 struct iovec *i = iov + *idx;
505 struct iovec iov = {};
537 iov.iov_base = (uint8_t*) b->rbuffer + b->rbuffer_size;
538 iov.iov_len = n - b->rbuffer_size;
541 k = readv(b->input_fd, &iov, 1);
544 mh.msg_iov = &iov;
552 k = readv(b->input_fd, &iov, 1);
770 struct iovec *iov;
789 iov = alloca(n);
790 memcpy(iov, m->iovec, n);
793 iovec_advance(iov, &j, *idx);
796 k = writev(bus->output_fd, iov, m->n_iovec);
799 .msg_iov = iov,
816 k = writev(bus->output_fd, iov, m->n_iovec);
923 struct iovec iov = {};
950 iov.iov_base = (uint8_t*) bus->rbuffer + bus->rbuffer_size;
951 iov.iov_len = need - bus->rbuffer_size;
954 k = readv(bus->input_fd, &iov, 1);
957 mh.msg_iov = &iov;
965 k = readv(bus->input_fd, &iov, 1);