Lines Matching defs:test_iovec
627 * in the 'test_iovec'. For each element in the 'test_iovec' it
629 * of the new element is copied from 'test_iovec'. 'iov_base' is
630 * allocated depending on the 'iov_base' of 'test_iovec':
642 * 'iovnum' is number of elements in 'test_iovec'.
646 struct iovec *alloc_test_iovec(const struct iovec *test_iovec, int iovnum)
658 iovec[i].iov_len = test_iovec[i].iov_len;
669 if (test_iovec[i].iov_base != MAP_FAILED)
670 iovec[i].iov_base += (uintptr_t)test_iovec[i].iov_base;
675 if (test_iovec[i].iov_base == MAP_FAILED) {
686 if (test_iovec[i].iov_base == MAP_FAILED)
699 void free_test_iovec(const struct iovec *test_iovec,
705 if (test_iovec[i].iov_base != MAP_FAILED) {
706 if (test_iovec[i].iov_base)
707 iovec[i].iov_base -= (uintptr_t)test_iovec[i].iov_base;