Lines Matching refs:iov
42 static char *pread_buf_and_check(int fd, const struct iovec *iov, int iovcnt, ssize_t *totalbytesre… in pread_buf_and_check() argument
48 if ((iov == NULL) || (iovcnt > IOV_MAX)) { in pread_buf_and_check()
54 if (SSIZE_MAX - buflen < iov[i].iov_len) { in pread_buf_and_check()
58 buflen += iov[i].iov_len; in pread_buf_and_check()
91 ssize_t vfs_readv(int fd, const struct iovec *iov, int iovcnt, off_t *offset) in vfs_readv() argument
101 buf = pread_buf_and_check(fd, iov, iovcnt, &totalbytesread, offset); in vfs_readv()
109 bytestoread = iov[i].iov_len; in vfs_readv()
115 ret = LOS_CopyFromKernel(iov[i].iov_base, bytesleft, curbuf, bytesleft); in vfs_readv()
120 ret = LOS_CopyFromKernel(iov[i].iov_base, bytestoread, curbuf, bytestoread); in vfs_readv()
135 if ((i == 0) && (ret == iov[i].iov_len)) { in vfs_readv()
144 ssize_t readv(int fd, const struct iovec *iov, int iovcnt) in readv() argument
146 return vfs_readv(fd, iov, iovcnt, NULL); in readv()