Home
last modified time | relevance | path

Searched refs:iocb (Results 1 – 18 of 18) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/io_submit/
Dio_submit01.c34 static struct iocb iocb; variable
35 static struct iocb *iocbs[] = {&iocb};
37 static struct iocb inv_fd_iocb;
38 static struct iocb *inv_fd_iocbs[] = {&inv_fd_iocb};
41 static struct iocb rdonly_fd_iocb;
42 static struct iocb *rdonly_fd_iocbs[] = {&rdonly_fd_iocb};
45 static struct iocb wronly_fd_iocb;
46 static struct iocb *wronly_fd_iocbs[] = {&wronly_fd_iocb};
48 static struct iocb zero_buf_iocb;
49 static struct iocb *zero_buf_iocbs[] = {&zero_buf_iocb};
[all …]
Dio_submit03.c34 static struct iocb iocb; variable
35 static struct iocb *iocbs[] = {&iocb};
37 static struct iocb inv_fd_iocb;
38 static struct iocb *inv_fd_iocbs[] = {&inv_fd_iocb};
41 static struct iocb rdonly_fd_iocb;
42 static struct iocb *rdonly_fd_iocbs[] = {&rdonly_fd_iocb};
45 static struct iocb wronly_fd_iocb;
46 static struct iocb *wronly_fd_iocbs[] = {&wronly_fd_iocb};
48 static struct iocb *zero_iocbs[1];
53 struct iocb **iocbs;
[all …]
Dio_submit02.c31 static struct iocb iocb; variable
32 static struct iocb *iocbs[] = {&iocb};
37 struct iocb **iocbs;
44 static inline void io_prep_option(struct iocb *cb, int fd, void *buf, in io_prep_option()
59 io_prep_option(&iocb, fd, buf, 0, 0, IOCB_CMD_PREAD); in setup()
/third_party/ltp/testcases/kernel/io/ltp-aiodio/
Daiocp.c66 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 …]
Daiodio_sparse.c66 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()
Daio-stress.c194 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 …]
Daiodio_append.c49 struct iocb iocb_array[naio]; in aiodio_append()
50 struct iocb *iocbs[naio]; in aiodio_append()
87 struct iocb *iocbp; in aiodio_append()
91 iocbp = (struct iocb *)event.obj; in aiodio_append()
/third_party/ltp/testcases/kernel/io/aio/
Daio02.c67 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()
Daio01.c81 struct iocb **iocbs; /* I/O Control Blocks */
379 if ((iocbs[0] = malloc(sizeof(struct iocb))) == NULL) in setup()
/third_party/ltp/testcases/kernel/syscalls/eventfd/
Deventfd01.c504 struct iocb iocb; in trigger_eventfd_overflow() local
505 struct iocb *iocbap[1]; in trigger_eventfd_overflow()
534 io_prep_pwrite(&iocb, *fd, buf, sizeof(buf), 0); in trigger_eventfd_overflow()
535 io_set_eventfd(&iocb, evfd); in trigger_eventfd_overflow()
537 iocbap[0] = &iocb; in trigger_eventfd_overflow()
/third_party/pulseaudio/src/tests/
Dmainloop-test.c47 static void iocb(pa_mainloop_api*a, pa_io_event *e, int fd, pa_io_event_flags_t f, void *userdata) { in iocb() function
96 ioe = a->io_new(a, 0, PA_IO_EVENT_INPUT, iocb, NULL); in START_TEST()
/third_party/openssl/engines/
De_afalg.c122 static ossl_inline int io_read(aio_context_t ctx, long n, struct iocb **iocb) in io_read() argument
124 return syscall(__NR_io_submit, ctx, n, iocb); in io_read()
270 struct iocb *cb; in afalg_fin_cipher_aio()
De_afalg.h74 struct iocb cbt[MAX_INFLIGHTS];
/third_party/ltp/testcases/kernel/syscalls/io_pgetevents/
Dio_pgetevents01.c41 struct iocb cb, *cbs[1]; in run()
Dio_pgetevents02.c53 struct iocb cb, *cbs[1]; in setup()
/third_party/libbpf/.github/actions/build-selftests/
Dvmlinux.h43390 struct kiocb *iocb; member
43817 struct iocb { struct
43968 struct aio_kiocb *iocb; member
45706 struct kiocb *iocb; member
56003 struct kiocb *iocb; member
56415 struct kiocb *iocb; member
68461 struct kiocb iocb; member
/third_party/libabigail/tests/data/test-read-dwarf/
Dtest15-pr18892.so.abi10188 …<parameter type-id='type-id-980' name='iocb' filepath='../../.././libsanitizer/sanitizer_common/sa…
10195 …<parameter type-id='type-id-980' name='iocb' filepath='../../.././libsanitizer/sanitizer_common/sa…
/third_party/libabigail/tests/data/test-annotate/
Dtest15-pr18892.so.abi17978 …<parameter type-id='type-id-980' name='iocb' filepath='../../.././libsanitizer/sanitizer_common/sa…
17991 …<parameter type-id='type-id-980' name='iocb' filepath='../../.././libsanitizer/sanitizer_common/sa…