Home
last modified time | relevance | path

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

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