Searched refs:test_iovec (Results 1 - 2 of 2) sorted by relevance

/linux-master/tools/testing/vsock/
H A Dutil.h65 struct iovec *alloc_test_iovec(const struct iovec *test_iovec, int iovnum);
66 void free_test_iovec(const struct iovec *test_iovec,
H A Dutil.c563 * in the 'test_iovec'. For each element in the 'test_iovec' it
565 * of the new element is copied from 'test_iovec'. 'iov_base' is
566 * allocated depending on the 'iov_base' of 'test_iovec':
578 * 'iovnum' is number of elements in 'test_iovec'.
582 struct iovec *alloc_test_iovec(const struct iovec *test_iovec, int iovnum) argument
594 iovec[i].iov_len = test_iovec[i].iov_len;
605 if (test_iovec[i].iov_base != MAP_FAILED)
606 iovec[i].iov_base += (uintptr_t)test_iovec[i].iov_base;
611 if (test_iovec[
635 free_test_iovec(const struct iovec *test_iovec, struct iovec *iovec, int iovnum) argument
[all...]

Completed in 107 milliseconds