/freebsd-11-stable/tests/sys/aio/ |
H A D | aio_kqueue_test.c | 60 struct aiocb **iocb, *kq_iocb; local 81 iocb = calloc(max_queue_per_proc, sizeof(struct aiocb*)); 82 if (iocb == NULL) 108 iocb[i] = (struct aiocb *)calloc(1, 110 if (iocb[i] == NULL) 117 iocb[i]->aio_nbytes = sizeof(buffer); 118 iocb[i]->aio_buf = buffer; 119 iocb[i]->aio_fildes = fd; 120 iocb[i]->aio_offset = iocb[ [all...] |
H A D | lio_kqueue_test.c | 59 struct aiocb *iocb[MAX_IOCBS]; local 112 lio[j][i] = iocb[k] = 114 iocb[k]->aio_nbytes = sizeof(buffer); 115 iocb[k]->aio_buf = buffer; 116 iocb[k]->aio_fildes = fd; 117 iocb[k]->aio_offset 118 = iocb[k]->aio_nbytes * k * (run + 1); 121 printf("hello iocb[k] %jd\n", 122 (intmax_t)iocb[k]->aio_offset); 124 iocb[ [all...] |
H A D | aio_test.c | 860 struct aiocb iocb; member in struct:ioreq 863 struct aiocb *iocb; local 879 ioreq[i].iocb.aio_nbytes = sizeof(ioreq[i].buffer); 880 ioreq[i].iocb.aio_fildes = s[0]; 881 ioreq[i].iocb.aio_buf = ioreq[i].buffer; 882 ATF_REQUIRE(aio_read(&ioreq[i].iocb) == 0); 889 ATF_REQUIRE(aio_waitcomplete(&iocb, NULL) == 1); 892 if (iocb == &ioreq[0].iocb) 904 ATF_REQUIRE(aio_error(&ioreq[i].iocb) 918 struct aiocb iocb, *iocbp; local 982 struct aiocb iocb, *iocbp; local 1051 struct aiocb iocb; member in struct:__anon8590 [all...] |
/freebsd-11-stable/lib/librt/ |
H A D | aio.c | 54 typedef void (*aio_func)(union sigval val, struct aiocb *iocb); 56 extern int __sys_aio_read(struct aiocb *iocb); 57 extern int __sys_aio_write(struct aiocb *iocb); 59 extern ssize_t __sys_aio_return(struct aiocb *iocb); 60 extern int __sys_aio_error(struct aiocb *iocb); 61 extern int __sys_aio_fsync(int op, struct aiocb *iocb); 102 aio_io(struct aiocb *iocb, int (*sysfunc)(struct aiocb *iocb)) argument 108 if (iocb->aio_sigevent.sigev_notify != SIGEV_THREAD) { 109 ret = sysfunc(iocb); 130 __aio_read(struct aiocb *iocb) argument 137 __aio_write(struct aiocb *iocb) argument 164 __aio_return(struct aiocb *iocb) argument 186 __aio_fsync(int op, struct aiocb *iocb) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_platform_limits_linux.cpp | 98 CHECK_TYPE_SIZE(iocb); variable 99 CHECK_SIZE_AND_OFFSET(iocb, aio_data); 101 CHECK_SIZE_AND_OFFSET(iocb, aio_lio_opcode); 102 CHECK_SIZE_AND_OFFSET(iocb, aio_reqprio); 103 CHECK_SIZE_AND_OFFSET(iocb, aio_fildes); 104 CHECK_SIZE_AND_OFFSET(iocb, aio_buf); 105 CHECK_SIZE_AND_OFFSET(iocb, aio_nbytes); 106 CHECK_SIZE_AND_OFFSET(iocb, aio_offset);
|
/freebsd-11-stable/libexec/bootpd/ |
H A D | hwaddr.c | 161 struct strioctl iocb; local 166 iocb.ic_cmd = SIOCSARP; 167 iocb.ic_timout = 0; 168 iocb.ic_dp = (char *)&arpreq; 169 iocb.ic_len = sizeof(arpreq); 170 if (ioctl(fd, I_STR, (caddr_t)&iocb) < 0) {
|
/freebsd-11-stable/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp.h | 708 int sdp_sendmsg_zcopy(struct kiocb *iocb, struct socket *sk, struct iovec *iov);
|
H A D | sdp_zcopy.c | 711 int sdp_sendmsg_zcopy(struct kiocb *iocb, struct socket *sk, struct iovec *iov) argument
|
/freebsd-11-stable/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) \ 777 __sanitizer_syscall_pre_impl_io_cancel((long)(ctx_id), (long)(iocb), \ 779 #define __sanitizer_syscall_post_io_cancel(res, ctx_id, iocb, result) \ 780 __sanitizer_syscall_post_impl_io_cancel(res, (long)(ctx_id), (long)(iocb), \ 2439 void __sanitizer_syscall_pre_impl_io_cancel(long ctx_id, long iocb, 2441 void __sanitizer_syscall_post_impl_io_cancel(long res, long ctx_id, long iocb,
|