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.c587 struct iovec *alloc_test_iovec(const struct iovec *test_iovec, int iovnum) in alloc_test_iovec() argument
599 iovec[i].iov_len = test_iovec[i].iov_len; in alloc_test_iovec()
610 if (test_iovec[i].iov_base != MAP_FAILED) in alloc_test_iovec()
611 iovec[i].iov_base += (uintptr_t)test_iovec[i].iov_base; in alloc_test_iovec()
616 if (test_iovec[i].iov_base == MAP_FAILED) { in alloc_test_iovec()
627 if (test_iovec[i].iov_base == MAP_FAILED) in alloc_test_iovec()
640 void free_test_iovec(const struct iovec *test_iovec, in free_test_iovec() argument
646 if (test_iovec[i].iov_base != MAP_FAILED) { in free_test_iovec()
647 if (test_iovec[i].iov_base) in free_test_iovec()
648 iovec[i].iov_base -= (uintptr_t)test_iovec[i].iov_base; in free_test_iovec()
H A Dutil.h72 struct iovec *alloc_test_iovec(const struct iovec *test_iovec, int iovnum);
73 void free_test_iovec(const struct iovec *test_iovec,