Home
last modified time | relevance | path

Searched refs:iovecs_used (Results 1 – 1 of 1) sorted by relevance

/art/libartbase/base/
Dsafe_copy.cc47 size_t iovecs_used = 0; in SafeCopy() local
51 if (iovecs_used == kMaxIovecs) { in SafeCopy()
56 src_iovs[iovecs_used].iov_base = const_cast<char*>(cur); in SafeCopy()
58 src_iovs[iovecs_used].iov_len = AlignUp(cur, PAGE_SIZE) - cur; in SafeCopy()
60 src_iovs[iovecs_used].iov_len = PAGE_SIZE; in SafeCopy()
63 src_iovs[iovecs_used].iov_len = std::min(src_iovs[iovecs_used].iov_len, len); in SafeCopy()
65 len -= src_iovs[iovecs_used].iov_len; in SafeCopy()
66 cur += src_iovs[iovecs_used].iov_len; in SafeCopy()
67 ++iovecs_used; in SafeCopy()
70 ssize_t rc = process_vm_readv(getpid(), &dst_iov, 1, src_iovs, iovecs_used, 0); in SafeCopy()