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.c677 struct iovec *alloc_test_iovec(const struct iovec *test_iovec, int iovnum) in alloc_test_iovec() argument
689 iovec[i].iov_len = test_iovec[i].iov_len; in alloc_test_iovec()
700 if (test_iovec[i].iov_base != MAP_FAILED) in alloc_test_iovec()
701 iovec[i].iov_base += (uintptr_t)test_iovec[i].iov_base; in alloc_test_iovec()
706 if (test_iovec[i].iov_base == MAP_FAILED) { in alloc_test_iovec()
717 if (test_iovec[i].iov_base == MAP_FAILED) in alloc_test_iovec()
730 void free_test_iovec(const struct iovec *test_iovec, in free_test_iovec() argument
736 if (test_iovec[i].iov_base != MAP_FAILED) { in free_test_iovec()
737 if (test_iovec[i].iov_base) in free_test_iovec()
738 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,