Home
last modified time | relevance | path

Searched refs:iocbs (Results 1 – 9 of 9) sorted by relevance

/third_party/ltp/testcases/kernel/io/aio/
Daio01.c81 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 …]
/third_party/ltp/testcases/kernel/syscalls/io_submit/
Dio_submit03.c35 static struct iocb *iocbs[] = {&iocb}; variable
53 struct iocb **iocbs; member
58 {&invalid_ctx, 1, iocbs, EINVAL, "invalid ctx"},
60 {&ctx, -1, iocbs, EINVAL, "invalid nr"},
106 TST_EXP_FAIL2(tst_syscall(__NR_io_submit, *tc[i].ctx, tc[i].nr, tc[i].iocbs), in run()
Dio_submit01.c35 static struct iocb *iocbs[] = {&iocb}; variable
58 struct iocb **iocbs; member
63 {&invalid_ctx, 1, iocbs, -EINVAL, "invalid ctx"},
65 {&ctx, -1, iocbs, -EINVAL, "invalid nr"},
119 ret = io_submit(*t->ctx, t->nr, t->iocbs); in verify_io_submit()
Dio_submit02.c32 static struct iocb *iocbs[] = {&iocb}; variable
37 struct iocb **iocbs; member
40 {&ctx, 1, iocbs, "returns the number of iocbs submitted"},
73 TEST(tst_syscall(__NR_io_submit, *tc[i].ctx, tc[i].nr, tc[i].iocbs)); in run()
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
Daiodio_sparse.c66 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()
Daiodio_append.c50 struct iocb *iocbs[naio]; in aiodio_append() local
69 iocbs[i] = &iocb_array[i]; in aiodio_append()
76 w = io_submit(myctx, naio, iocbs); in aiodio_append()
Daio-stress.c233 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);
/third_party/ltp/runtest/
Dltp-aio-stress.part27 # -b max number of iocbs to give io_submit at once
Dltp-aio-stress.part17 # -b max number of iocbs to give io_submit at once