/external/ltp/testcases/kernel/syscalls/io_submit/ |
D | io_submit01.c | 36 static struct iocb iocb; variable 37 static struct iocb *iocbs[] = {&iocb}; 39 static struct iocb inv_fd_iocb; 40 static struct iocb *inv_fd_iocbs[] = {&inv_fd_iocb}; 43 static struct iocb rdonly_fd_iocb; 44 static struct iocb *rdonly_fd_iocbs[] = {&rdonly_fd_iocb}; 47 static struct iocb wronly_fd_iocb; 48 static struct iocb *wronly_fd_iocbs[] = {&wronly_fd_iocb}; 50 static struct iocb zero_buf_iocb; 51 static struct iocb *zero_buf_iocbs[] = {&zero_buf_iocb}; [all …]
|
/external/compiler-rt/test/msan/Linux/ |
D | syscalls.cc | 88 struct iocb iocb[3]; in main() local 89 struct iocb *iocbp[3] = { &iocb[0], &iocb[1], &iocb[2] }; in main() 90 memset(iocb, 0, sizeof(iocb)); in main() 91 iocb[0].aio_lio_opcode = IOCB_CMD_PREAD; in main() 92 iocb[0].aio_buf = (__u64)buf; in main() 93 iocb[0].aio_nbytes = 10; in main() 94 iocb[1].aio_lio_opcode = IOCB_CMD_PREAD; in main() 95 iocb[1].aio_buf = (__u64)(&buf[20]); in main() 96 iocb[1].aio_nbytes = 15; in main() 98 iocb[2].aio_lio_opcode = IOCB_CMD_PREADV; in main() [all …]
|
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
D | aiocp.c | 66 struct iocb **iocb_free; /* array of pointers to iocb */ 136 if ((iocb_free = malloc(n * sizeof(struct iocb *))) == 0) { in init_iocb() 142 (iocb_free[i] = malloc(sizeof(struct iocb)))) in init_iocb() 162 static struct iocb *alloc_iocb(void) in alloc_iocb() 169 void free_iocb(struct iocb *io) in free_iocb() 193 struct iocb *iocb = ep->obj; in io_wait_run() local 197 ep, iocb, ep->res, ep->res2); in io_wait_run() 199 cb(ctx, iocb, ep->res, ep->res2); in io_wait_run() 225 static void wr_done(io_context_t ctx, struct iocb *iocb, long res, long res2) in wr_done() argument 230 if (res != iocb->u.c.nbytes) { in wr_done() [all …]
|
D | aiodio_sparse.c | 66 struct iocb **iocbs; in aiodio_sparse() 78 iocbs = malloc(sizeof(struct iocb *) * num_aio); in aiodio_sparse() 80 if ((iocbs[i] = malloc(sizeof(struct iocb))) == 0) { in aiodio_sparse() 121 struct iocb *iocbp; in aiodio_sparse() 144 iocbp = (struct iocb *)event.obj; in aiodio_sparse() 178 struct iocb *iocbp; in aiodio_sparse() 188 iocbp = (struct iocb *)event.obj; in aiodio_sparse()
|
D | aiodio_append.c | 87 struct iocb iocb_array[NUM_AIO]; in aiodio_append() 88 struct iocb *iocbs[NUM_AIO]; in aiodio_append() 127 struct iocb *iocbp; in aiodio_append() 131 iocbp = (struct iocb *)event.obj; in aiodio_append()
|
D | aio-stress.c | 194 struct iocb iocb; member 233 struct iocb **iocbs; 352 s.st_size > (io->iocb.u.c.offset + io->res)) { in check_finished_io() 357 io->iocb.aio_lio_opcode, io->iocb.u.c.offset, in check_finished_io() 368 io->io_oper->file_name, io->iocb.u.c.offset); in check_finished_io() 633 io_prep_pwrite(&io->iocb, oper->fd, io->buf, oper->reclen, 638 io_prep_pread(&io->iocb, oper->fd, io->buf, oper->reclen, 645 io_prep_pread(&io->iocb, oper->fd, io->buf, oper->reclen, 651 io_prep_pwrite(&io->iocb, oper->fd, io->buf, oper->reclen, 713 struct iocb **my_iocbs) [all …]
|
/external/ltp/android/include/ |
D | libaio.h | 26 struct iocb { struct 40 PADDED_PTR(struct iocb *obj, __pad2); argument 59 typedef void (*io_callback_t)(io_context_t ctx, struct iocb *iocb, long res, long res2); 78 static inline int libaio_submit(io_context_t ctx, long nr, struct iocb *ios[]) { in libaio_submit() 83 static inline int libaio_cancel(io_context_t ctx, struct iocb *iocb, struct io_event *evt) { in libaio_cancel() argument 84 int ret = io_cancel(ctx, iocb, evt); in libaio_cancel() 93 static inline void io_set_callback(struct iocb *iocb, io_callback_t cb) in io_set_callback() argument 95 iocb->data = (void *)cb; in io_set_callback()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_platform_limits_linux.cc | 95 CHECK_TYPE_SIZE(iocb); 96 CHECK_SIZE_AND_OFFSET(iocb, aio_data); 98 CHECK_SIZE_AND_OFFSET(iocb, aio_lio_opcode); 99 CHECK_SIZE_AND_OFFSET(iocb, aio_reqprio); 100 CHECK_SIZE_AND_OFFSET(iocb, aio_fildes); 101 CHECK_SIZE_AND_OFFSET(iocb, aio_buf); 102 CHECK_SIZE_AND_OFFSET(iocb, aio_nbytes); 103 CHECK_SIZE_AND_OFFSET(iocb, aio_offset);
|
/external/ltp/testcases/kernel/io/aio/ |
D | aio02.c | 67 static void work_done(io_context_t ctx, struct iocb *iocb, long res, long res2) in work_done() argument 74 if (res != (long)iocb->u.c.nbytes) in work_done() 76 iocb->u.c.nbytes, res); in work_done() 100 struct iocb *iocb = ep->obj; in io_wait_run() local 101 cb(ctx, iocb, ep->res, ep->res2); in io_wait_run() 116 struct iocb iocb_array[AIO_MAXIO]; in io_tio() 117 struct iocb *iocbps[AIO_MAXIO]; in io_tio()
|
/external/autotest/client/tests/aio_dio_bugs/src/ |
D | aio-dio-invalidate-failure.c | 48 struct iocb iocb; in spin_dio() local 49 struct iocb *iocbs[1] = { &iocb }; in spin_dio() 53 io_prep_pwrite(&iocb, fd, buf, GINORMOUS, 0); in spin_dio()
|
D | aio-dio-subblock-eof-read.c | 41 struct iocb myiocb; in main() 42 struct iocb *cb = &myiocb; in main()
|
D | aio-dio-extend-stat.c | 50 struct iocb *iocbs[MAX_AIO_EVENTS]; 82 iocbs[i] = calloc(1, sizeof(struct iocb)); in main()
|
/external/strace/tests-m32/ |
D | aio.c | 58 const struct iocb proto_cb[] = { in main() 74 const struct iocb *cb = tail_memdup(proto_cb, sizeof(proto_cb)); in main() 100 const struct iocb proto_cbv[] = { in main() 118 const struct iocb *cbv = tail_memdup(proto_cbv, sizeof(proto_cbv)); in main() 121 const struct iocb proto_cbv2[] = { in main() 176 const struct iocb *cbv2 = tail_memdup(proto_cbv2, sizeof(proto_cbv2)); in main() 178 const struct iocb proto_cbc = { in main() 183 const struct iocb *cbc = tail_memdup(&proto_cbc, sizeof(proto_cbc)); in main()
|
D | aio_pgetevents.c | 87 const struct iocb proto_cb[] = { in main() 103 const struct iocb *cb = tail_memdup(proto_cb, sizeof(proto_cb)); in main()
|
/external/strace/tests-mx32/ |
D | aio.c | 58 const struct iocb proto_cb[] = { in main() 74 const struct iocb *cb = tail_memdup(proto_cb, sizeof(proto_cb)); in main() 100 const struct iocb proto_cbv[] = { in main() 118 const struct iocb *cbv = tail_memdup(proto_cbv, sizeof(proto_cbv)); in main() 121 const struct iocb proto_cbv2[] = { in main() 176 const struct iocb *cbv2 = tail_memdup(proto_cbv2, sizeof(proto_cbv2)); in main() 178 const struct iocb proto_cbc = { in main() 183 const struct iocb *cbc = tail_memdup(&proto_cbc, sizeof(proto_cbc)); in main()
|
D | aio_pgetevents.c | 87 const struct iocb proto_cb[] = { in main() 103 const struct iocb *cb = tail_memdup(proto_cb, sizeof(proto_cb)); in main()
|
/external/strace/tests/ |
D | aio.c | 58 const struct iocb proto_cb[] = { in main() 74 const struct iocb *cb = tail_memdup(proto_cb, sizeof(proto_cb)); in main() 100 const struct iocb proto_cbv[] = { in main() 118 const struct iocb *cbv = tail_memdup(proto_cbv, sizeof(proto_cbv)); in main() 121 const struct iocb proto_cbv2[] = { in main() 176 const struct iocb *cbv2 = tail_memdup(proto_cbv2, sizeof(proto_cbv2)); in main() 178 const struct iocb proto_cbc = { in main() 183 const struct iocb *cbc = tail_memdup(&proto_cbc, sizeof(proto_cbc)); in main()
|
D | aio_pgetevents.c | 87 const struct iocb proto_cb[] = { in main() 103 const struct iocb *cb = tail_memdup(proto_cb, sizeof(proto_cb)); in main()
|
/external/strace/ |
D | aio.c | 80 print_common_flags(struct tcb *tcp, const struct iocb *cb) in print_common_flags() 93 iocb_is_valid(const struct iocb *cb) in iocb_is_valid() 101 print_iocb_header(struct tcb *tcp, const struct iocb *cb) in print_iocb_header() 126 print_iocb(struct tcb *tcp, const struct iocb *cb) in print_iocb() 169 struct iocb cb; in print_iocbp() 222 struct iocb cb; in SYS_FUNC()
|
/external/syzkaller/sys/linux/ |
D | aio.txt | 14 io_submit(ctx io_ctx, nr len[iocbpp], iocbpp ptr[in, array[ptr[in, iocb]]]) 15 io_cancel(ctx io_ctx, iocb ptr[in, iocb], res ptr[out, io_event]) 27 iocb {
|
/external/autotest/client/tests/aiostress/ |
D | aio-stress.c | 192 struct iocb iocb; member 231 struct iocb **iocbs; 349 s.st_size > (io->iocb.u.c.offset + io->res)) { in check_finished_io() 352 io->res, strerror(-io->res), io->iocb.aio_lio_opcode, in check_finished_io() 353 io->iocb.u.c.offset, io->buf_size); in check_finished_io() 362 io->io_oper->file_name, io->iocb.u.c.offset); in check_finished_io() 616 io_prep_pwrite(&io->iocb,oper->fd, io->buf, oper->reclen, 621 io_prep_pread(&io->iocb,oper->fd, io->buf, oper->reclen, 628 io_prep_pread(&io->iocb,oper->fd, io->buf, oper->reclen, 634 io_prep_pwrite(&io->iocb,oper->fd, io->buf, oper->reclen, [all …]
|
/external/ltp/testcases/kernel/syscalls/eventfd/ |
D | eventfd01.c | 504 struct iocb iocb; in trigger_eventfd_overflow() local 505 struct iocb *iocbap[1]; in trigger_eventfd_overflow() 529 io_prep_pwrite(&iocb, *fd, buf, sizeof(buf), 0); in trigger_eventfd_overflow() 530 io_set_eventfd(&iocb, evfd); in trigger_eventfd_overflow() 532 iocbap[0] = &iocb; in trigger_eventfd_overflow()
|
/external/blktrace/btreplay/ |
D | btreplay.c | 124 struct iocb iocb; member 720 iocbp->iocb.u.c.buf = NULL; in iocb_init() 733 struct iocb *iop = &iocbp->iocb; in iocb_setup() 860 free(iocbp->iocb.u.c.buf); in tip_release() 1075 if (evp->res != iocbp->iocb.u.c.nbytes) { in reclaim_ios() 1079 (long)iocbp->iocb.u.c.offset / nb_sec, in reclaim_ios() 1080 (long)iocbp->iocb.u.c.nbytes / nb_sec); in reclaim_ios() 1229 static void iocbs_map(struct thr_info *tip, struct iocb **list, in iocbs_map() 1257 list[i] = &iocbp->iocb; in iocbs_map() 1273 struct iocb *list[bunch->hdr.npkts]; in process_bunch()
|
/external/virglrenderer/src/ |
D | iov.c | 116 iov_cb iocb, void *cookie) in vrend_read_from_iovec_cb() argument 127 (*iocb)(cookie, read, (char*)iov->iov_base + offset, len); in vrend_read_from_iovec_cb()
|
D | vrend_iov.h | 47 size_t offset, size_t bytes, iov_cb iocb, void *cookie);
|