Home
last modified time | relevance | path

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

/linux/tools/testing/vsock/
H A Dutil.c646 struct iovec *alloc_test_iovec(const struct iovec *test_iovec, int iovnum) in alloc_test_iovec() argument
658 iovec[i].iov_len = test_iovec[i].iov_len; in alloc_test_iovec()
669 if (test_iovec[i].iov_base != MAP_FAILED) in alloc_test_iovec()
670 iovec[i].iov_base += (uintptr_t)test_iovec[i].iov_base; in alloc_test_iovec()
675 if (test_iovec[i].iov_base == MAP_FAILED) { in alloc_test_iovec()
686 if (test_iovec[i].iov_base == MAP_FAILED) in alloc_test_iovec()
699 void free_test_iovec(const struct iovec *test_iovec, in free_test_iovec() argument
705 if (test_iovec[i].iov_base != MAP_FAILED) { in free_test_iovec()
706 if (test_iovec[i].iov_base) in free_test_iovec()
707 iovec[i].iov_base -= (uintptr_t)test_iovec[i].iov_base; in free_test_iovec()
H A Dutil.h107 struct iovec *alloc_test_iovec(const struct iovec *test_iovec, int iovnum);
108 void free_test_iovec(const struct iovec *test_iovec,