Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/io/direct_io/
Ddiotest5.c77 static int nvector = 20; /* Vector array. Default 20 */ variable
92 (struct iovec *)valloc(sizeof(struct iovec) * nvector)) == NULL) { in runtest()
97 (struct iovec *)valloc(sizeof(struct iovec) * nvector)) == NULL) { in runtest()
101 for (i = 0, iovp = iov1; i < nvector; iovp++, i++) { in runtest()
109 for (i = 0, iovp = iov2; i < nvector; iovp++, i++) { in runtest()
120 vfillbuf(iov1, nvector, i); in runtest()
121 vfillbuf(iov2, nvector, i + 1); in runtest()
127 if (writev(fd_w, iov1, nvector) < 0) { in runtest()
136 if (readv(fd_r, iov2, nvector) < 0) { in runtest()
140 if (vbufcmp(iov1, iov2, nvector) != 0) { in runtest()
[all …]
Ddiotest6.c66 static int nvector = 20; variable
93 iov_r = calloc(nvector, sizeof(*iov_r)); in runtest()
94 iov_w = calloc(nvector, sizeof(*iov_w)); in runtest()
103 for (i = 0; i < nvector; i++) { in runtest()
111 for (i = 0; i < nvector; i++) { in runtest()
121 seekoff = offset + bufsize * childnum * nvector; in runtest()
123 vfillbuf(iov_w, nvector, childnum+i); in runtest()
130 n = writev(fd_w, iov_w, nvector); in runtest()
131 if (n < (bufsize * nvector)) { in runtest()
148 n = readv(fd_r, iov_r, nvector); in runtest()
[all …]