Lines Matching refs:iov
44 size_t vrend_get_iovec_size(const struct iovec *iov, int iovlen) {
48 size += iov->iov_len;
49 iov++;
56 size_t vrend_read_from_iovec(const struct iovec *iov, int iovlen,
64 if (iov->iov_len > offset) {
65 len = iov->iov_len - offset;
69 memcpy(buf, (char*)iov->iov_base + offset, len);
76 offset -= iov->iov_len;
79 iov++;
86 size_t vrend_write_to_iovec(const struct iovec *iov, int iovlen,
93 if (iov->iov_len > offset) {
94 len = iov->iov_len - offset;
98 memcpy((char*)iov->iov_base + offset, buf, len);
105 offset -= iov->iov_len;
107 iov++;
114 size_t vrend_read_from_iovec_cb(const struct iovec *iov, int iovlen,
122 if (iov->iov_len > offset) {
123 len = iov->iov_len - offset;
127 (*iocb)(cookie, read, (char*)iov->iov_base + offset, len);
133 offset -= iov->iov_len;
135 iov++;