/freebsd/lib/librt/ |
H A D | aio.c | 50 typedef void (*aio_func)(union sigval val, struct aiocb *iocb); 52 extern int __sys_aio_read(struct aiocb *iocb); 53 extern int __sys_aio_readv(struct aiocb *iocb); 54 extern int __sys_aio_write(struct aiocb *iocb); 55 extern int __sys_aio_writev(struct aiocb *iocb); 57 extern ssize_t __sys_aio_return(struct aiocb *iocb); 58 extern int __sys_aio_error(struct aiocb *iocb); 59 extern int __sys_aio_fsync(int op, struct aiocb *iocb); 100 aio_io(struct aiocb *iocb, int (*sysfunc)(struct aiocb *iocb)) in aio_io() argument 106 if (iocb->aio_sigevent.sigev_notify != SIGEV_THREAD) { in aio_io() [all …]
|
/freebsd/tests/sys/aio/ |
H A D | aio_kqueue_test.c | 58 struct aiocb **iocb, *kq_iocb; in main() local 79 iocb = calloc(max_queue_per_proc, sizeof(struct aiocb*)); in main() 80 if (iocb == NULL) in main() 106 iocb[i] = (struct aiocb *)calloc(1, in main() 108 if (iocb[i] == NULL) in main() 115 iocb[i]->aio_nbytes = sizeof(buffer); in main() 116 iocb[i]->aio_buf = buffer; in main() 117 iocb[i]->aio_fildes = fd; in main() 118 iocb[i]->aio_offset = iocb[i]->aio_nbytes * i * run; in main() 120 iocb[i]->aio_sigevent.sigev_notify_kqueue = kq; in main() [all …]
|
H A D | aio_test.c | 1128 struct aiocb iocb; in ATF_TC_BODY() member 1131 struct aiocb *iocb; in ATF_TC_BODY() local 1147 ioreq[i].iocb.aio_nbytes = sizeof(ioreq[i].buffer); in ATF_TC_BODY() 1148 ioreq[i].iocb.aio_fildes = s[0]; in ATF_TC_BODY() 1149 ioreq[i].iocb.aio_buf = ioreq[i].buffer; in ATF_TC_BODY() 1150 ATF_REQUIRE(aio_read(&ioreq[i].iocb) == 0); in ATF_TC_BODY() 1157 ATF_REQUIRE(aio_waitcomplete(&iocb, NULL) == 1); in ATF_TC_BODY() 1160 if (iocb == &ioreq[0].iocb) in ATF_TC_BODY() 1172 ATF_REQUIRE(aio_error(&ioreq[i].iocb) == EINPROGRESS); in ATF_TC_BODY() 1173 ATF_REQUIRE(aio_cancel(s[0], &ioreq[i].iocb) == AIO_CANCELED); in ATF_TC_BODY() [all …]
|
H A D | lio_kqueue_test.c | 57 struct aiocb *iocb[MAX_IOCBS]; in main() local 110 lio[j][i] = iocb[k] = in main() 112 iocb[k]->aio_nbytes = sizeof(buffer); in main() 113 iocb[k]->aio_buf = buffer; in main() 114 iocb[k]->aio_fildes = fd; in main() 115 iocb[k]->aio_offset in main() 116 = iocb[k]->aio_nbytes * k * (run + 1); in main() 120 (intmax_t)iocb[k]->aio_offset); in main() 122 iocb[k]->aio_lio_opcode = LIO_WRITE; in main()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | mmap_libaio.c | 39 do_sync_io(struct iocb *iocb) in do_sync_io() argument 42 struct iocb *iocbs[] = { iocb }; in do_sync_io() 60 struct iocb iocb; in main() local 76 (void) io_prep_pwrite(&iocb, rwfd, buf, buf_size, 0); in main() 77 do_sync_io(&iocb); in main() 79 (void) io_prep_pread(&iocb, rwfd, buf, buf_size, 0); in main() 80 do_sync_io(&iocb); in main()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_platform_limits_linux.cpp | 93 CHECK_TYPE_SIZE(iocb); 94 CHECK_SIZE_AND_OFFSET(iocb, aio_data); 96 CHECK_SIZE_AND_OFFSET(iocb, aio_lio_opcode); 97 CHECK_SIZE_AND_OFFSET(iocb, aio_reqprio); 98 CHECK_SIZE_AND_OFFSET(iocb, aio_fildes); 99 CHECK_SIZE_AND_OFFSET(iocb, aio_buf); 100 CHECK_SIZE_AND_OFFSET(iocb, aio_nbytes); 101 CHECK_SIZE_AND_OFFSET(iocb, aio_offset);
|
H A D | sanitizer_common_syscalls.inc | 1461 (long ctx_id, __sanitizer_iocb *iocb, __sanitizer_io_event *result) {} 1464 (long res, long ctx_id, __sanitizer_iocb *iocb, __sanitizer_io_event *result) { 1471 if (iocb) 1472 POST_WRITE(iocb, sizeof(*iocb));
|
/freebsd/lib/libc/gen/ |
H A D | aio_read2.c | 36 aio_read2(struct aiocb *iocb, int flags) in aio_read2() argument 44 iocb->aio_lio_opcode = LIO_READ; in aio_read2() 46 iocb->aio_lio_opcode |= LIO_FOFFSET; in aio_read2() 48 iocb->aio_lio_opcode |= LIO_VECTORED; in aio_read2() 50 error = lio_listio(LIO_NOWAIT, &iocb, 1, NULL); in aio_read2() 52 error = aio_error(iocb); in aio_read2()
|
H A D | aio_write2.c | 36 aio_write2(struct aiocb *iocb, int flags) in aio_write2() argument 44 iocb->aio_lio_opcode = LIO_WRITE; in aio_write2() 46 iocb->aio_lio_opcode |= LIO_FOFFSET; in aio_write2() 48 iocb->aio_lio_opcode |= LIO_VECTORED; in aio_write2() 50 error = lio_listio(LIO_NOWAIT, &iocb, 1, NULL); in aio_write2() 52 error = aio_error(iocb); in aio_write2()
|
/freebsd/libexec/bootpd/ |
H A D | hwaddr.c | 146 struct strioctl iocb; in setarp() local 151 iocb.ic_cmd = SIOCSARP; in setarp() 152 iocb.ic_timout = 0; in setarp() 153 iocb.ic_dp = (char *)&arpreq; in setarp() 154 iocb.ic_len = sizeof(arpreq); in setarp() 155 if (ioctl(fd, I_STR, (caddr_t)&iocb) < 0) { in setarp()
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | fsyncdir.cc | 93 struct aiocb iocb, *piocb; in TEST_F() local 103 bzero(&iocb, sizeof(iocb)); in TEST_F() 104 iocb.aio_fildes = fd; in TEST_F() 106 ASSERT_EQ(0, aio_fsync(O_SYNC, &iocb)) << strerror(errno); in TEST_F()
|
H A D | fsync.cc | 101 struct aiocb iocb, *piocb; in TEST_F() local 113 bzero(&iocb, sizeof(iocb)); in TEST_F() 114 iocb.aio_fildes = fd; in TEST_F() 116 ASSERT_EQ(0, aio_fsync(O_SYNC, &iocb)) << strerror(errno); in TEST_F()
|
H A D | read.cc | 167 struct aiocb iocb, *piocb; in TEST_F() local 176 iocb.aio_nbytes = bufsize; in TEST_F() 177 iocb.aio_fildes = fd; in TEST_F() 178 iocb.aio_buf = buf; in TEST_F() 179 iocb.aio_offset = 0; in TEST_F() 180 iocb.aio_sigevent.sigev_notify = SIGEV_NONE; in TEST_F() 181 ASSERT_EQ(0, aio_read(&iocb)) << strerror(errno); in TEST_F()
|
H A D | write.cc | 244 struct aiocb iocb, *piocb; in TEST_F() local 253 iocb.aio_nbytes = bufsize; in TEST_F() 254 iocb.aio_fildes = fd; in TEST_F() 255 iocb.aio_buf = __DECONST(void *, CONTENTS); in TEST_F() 256 iocb.aio_offset = offset; in TEST_F() 257 iocb.aio_sigevent.sigev_notify = SIGEV_NONE; in TEST_F() 258 ASSERT_EQ(0, aio_write(&iocb)) << strerror(errno); in TEST_F()
|
/freebsd/tools/test/gpioevents/ |
H A D | gpioevents.c | 384 struct aiocb iocb; in run_aio_read() local 398 bzero(&iocb, sizeof(iocb)); in run_aio_read() 400 iocb.aio_fildes = handle; in run_aio_read() 401 iocb.aio_nbytes = sizeof(buffer); in run_aio_read() 402 iocb.aio_offset = 0; in run_aio_read() 403 iocb.aio_buf = buffer; in run_aio_read() 411 res = aio_read(&iocb); in run_aio_read() 415 res = aio_error(&iocb); in run_aio_read() 419 res = aio_return(&iocb); in run_aio_read()
|
/freebsd/crypto/openssl/engines/ |
H A D | e_afalg.h | 74 struct iocb cbt[MAX_INFLIGHTS];
|
H A D | e_afalg.c | 122 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()
|
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp.h | 667 int sdp_sendmsg_zcopy(struct kiocb *iocb, struct socket *sk, struct iovec *iov);
|
H A D | sdp_zcopy.c | 713 int sdp_sendmsg_zcopy(struct kiocb *iocb, struct socket *sk, struct iovec *iov) in sdp_sendmsg_zcopy() argument
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 776 #define __sanitizer_syscall_pre_io_cancel(ctx_id, iocb, result) \ argument 777 __sanitizer_syscall_pre_impl_io_cancel((long)(ctx_id), (long)(iocb), \ 779 #define __sanitizer_syscall_post_io_cancel(res, ctx_id, iocb, result) \ argument 780 __sanitizer_syscall_post_impl_io_cancel(res, (long)(ctx_id), (long)(iocb), \ 2455 void __sanitizer_syscall_pre_impl_io_cancel(long ctx_id, long iocb, 2457 void __sanitizer_syscall_post_impl_io_cancel(long res, long ctx_id, long iocb,
|
/freebsd/contrib/capsicum-test/ |
H A D | linux.cc | 1142 struct iocb req; in TEST() 1150 struct iocb* reqs[1] = {&req}; in TEST()
|