/external/ltp/testcases/kernel/io/aio/ |
D | aio01.c | 81 struct iocb **iocbs; /* I/O Control Blocks */ variable 129 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main() 134 TEST(io_submit(io_ctx, 1, iocbs)); in main() 160 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main() 165 TEST(io_submit(io_ctx, 1, iocbs)); in main() 192 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main() 196 TEST(io_submit(io_ctx, 1, iocbs)); in main() 223 io_prep_pread(iocbs[0], fd, dstbuf, bufsize, pos); in main() 227 TEST(io_submit(io_ctx, 1, iocbs)); in main() 254 io_prep_pwrite(iocbs[0], fd, srcbuf, bufsize, pos); in main() [all …]
|
/external/autotest/client/tests/aio_dio_bugs/src/ |
D | aio-dio-extend-stat.c | 50 struct iocb *iocbs[MAX_AIO_EVENTS]; variable 82 iocbs[i] = calloc(1, sizeof(struct iocb)); in main() 83 if (iocbs[i] == NULL) in main() 87 iocbs[i]->aio_fildes = handle; in main() 88 iocbs[i]->aio_lio_opcode = IO_CMD_PWRITE; in main() 89 iocbs[i]->aio_reqprio = 0; in main() 90 iocbs[i]->u.c.buf = buf; in main() 91 iocbs[i]->u.c.nbytes = BUFSIZE; in main() 92 iocbs[i]->u.c.offset = BUFSIZE*i; in main() 149 ret = io_submit(ctxp, 1, &(iocbs[i])); in fun_writeN() [all …]
|
D | aio-dio-invalidate-failure.c | 49 struct iocb *iocbs[1] = { &iocb }; in spin_dio() local 60 ret = io_submit(ctx, 1, iocbs); in spin_dio()
|
/external/ltp/testcases/kernel/syscalls/io_submit/ |
D | io_submit01.c | 37 static struct iocb *iocbs[] = {&iocb}; variable 60 struct iocb **iocbs; member 65 {&invalid_ctx, 1, iocbs, -EINVAL, "invalid ctx"}, 67 {&ctx, -1, iocbs, -EINVAL, "invalid nr"}, 121 ret = io_submit(*t->ctx, t->nr, t->iocbs); in verify_io_submit()
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aiodio_sparse.c | 66 struct iocb **iocbs; in aiodio_sparse() local 78 iocbs = malloc(sizeof(struct iocb *) * num_aio); in aiodio_sparse() 80 if ((iocbs[i] = malloc(sizeof(struct iocb))) == 0) { in aiodio_sparse() 99 io_prep_pwrite(iocbs[i], fd, bufptr, writesize, offset); in aiodio_sparse() 106 if ((w = io_submit(myctx, num_aio, iocbs)) < 0) { in aiodio_sparse()
|
D | aiodio_append.c | 88 struct iocb *iocbs[NUM_AIO]; in aiodio_append() local 111 iocbs[i] = &iocb_array[i]; in aiodio_append() 118 if ((w = io_submit(myctx, NUM_AIO, iocbs)) < 0) { in aiodio_append()
|
D | aio-stress.c | 233 struct iocb **iocbs; member 880 struct iocb **my_iocbs = t->iocbs; 905 ret = run_built(t, num_built, t->iocbs); 978 t->iocbs = malloc(sizeof(struct iocb *) * max_io_submit); 979 if (!t->iocbs) { 984 memset(t->iocbs, 0, max_io_submit * sizeof(struct iocb *)); 999 free(t->iocbs);
|
/external/autotest/client/tests/aiostress/ |
D | aio-stress.c | 231 struct iocb **iocbs; member 861 struct iocb **my_iocbs = t->iocbs; 886 ret = run_built(t, num_built, t->iocbs); 958 t->iocbs = malloc(sizeof(struct iocb *) * max_io_submit); 959 if (!t->iocbs) { 964 memset(t->iocbs, 0, max_io_submit * sizeof(struct iocb *)); 980 if (t->iocbs) 981 free(t->iocbs);
|
/external/ltp/runtest/ |
D | ltp-aio-stress.part2 | 7 # -b max number of iocbs to give io_submit at once
|
D | ltp-aio-stress.part1 | 7 # -b max number of iocbs to give io_submit at once
|