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

/external/ltp/testcases/kernel/io/direct_io/
H A Ddiotest5.c34 * The nvector gives vector array size. Test data file can be
40 * [-v nvector] [-f filename]
77 static int nvector = 20; /* Vector array. Default 20 */ variable
92 (struct iovec *)valloc(sizeof(struct iovec) * nvector)) == NULL) {
97 (struct iovec *)valloc(sizeof(struct iovec) * nvector)) == NULL) {
101 for (i = 0, iovp = iov1; i < nvector; iovp++, i++) {
109 for (i = 0, iovp = iov2; i < nvector; iovp++, i++) {
120 vfillbuf(iov1, nvector, i);
121 vfillbuf(iov2, nvector, i + 1);
127 if (writev(fd_w, iov1, nvector) <
[all...]
H A Ddiotest6.c34 * [-v nvector] [-f fileaname]
66 static int nvector = 20; variable
76 "Usage: diotest6 [-b bufsize] [-o offset] [-n numchild] [-i iterations] [-v nvector] [-f filename]\n");
93 iov_r = calloc(nvector, sizeof(*iov_r));
94 iov_w = calloc(nvector, sizeof(*iov_w));
103 for (i = 0; i < nvector; i++) {
111 for (i = 0; i < nvector; i++) {
121 seekoff = offset + bufsize * childnum * nvector;
123 vfillbuf(iov_w, nvector, childnum+i);
130 n = writev(fd_w, iov_w, nvector);
[all...]

Completed in 95 milliseconds