Searched refs:iocb (Results 1 - 20 of 20) sorted by relevance

/freebsd-current/lib/libc/gen/
H A Daio_read2.c36 aio_read2(struct aiocb *iocb, int flags) argument
44 iocb->aio_lio_opcode = LIO_READ;
46 iocb->aio_lio_opcode |= LIO_FOFFSET;
48 iocb->aio_lio_opcode |= LIO_VECTORED;
50 error = lio_listio(LIO_NOWAIT, &iocb, 1, NULL);
52 error = aio_error(iocb);
H A Daio_write2.c36 aio_write2(struct aiocb *iocb, int flags) argument
44 iocb->aio_lio_opcode = LIO_WRITE;
46 iocb->aio_lio_opcode |= LIO_FOFFSET;
48 iocb->aio_lio_opcode |= LIO_VECTORED;
50 error = lio_listio(LIO_NOWAIT, &iocb, 1, NULL);
52 error = aio_error(iocb);
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmmap_libaio.c39 do_sync_io(struct iocb *iocb) argument
42 struct iocb *iocbs[] = { iocb };
60 struct iocb iocb; local
76 (void) io_prep_pwrite(&iocb, rwfd, buf, buf_size, 0);
77 do_sync_io(&iocb);
79 (void) io_prep_pread(&iocb, rwfd, buf, buf_size, 0);
80 do_sync_io(&iocb);
[all...]
/freebsd-current/lib/librt/
H A Daio.c50 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)) argument
128 __aio_read(struct aiocb *iocb) argument
135 __aio_readv(struct aiocb *iocb) argument
142 __aio_write(struct aiocb *iocb) argument
149 __aio_writev(struct aiocb *iocb) argument
176 __aio_return(struct aiocb *iocb) argument
198 __aio_fsync(int op, struct aiocb *iocb) argument
[all...]
/freebsd-current/tests/sys/aio/
H A Daio_kqueue_test.c58 struct aiocb **iocb, *kq_iocb; local
79 iocb = calloc(max_queue_per_proc, sizeof(struct aiocb*));
80 if (iocb == NULL)
106 iocb[i] = (struct aiocb *)calloc(1,
108 if (iocb[i] == NULL)
115 iocb[i]->aio_nbytes = sizeof(buffer);
116 iocb[i]->aio_buf = buffer;
117 iocb[i]->aio_fildes = fd;
118 iocb[i]->aio_offset = iocb[
[all...]
H A Daio_test.c256 * Setup an iocb for kqueue notification. This isn't thread
1128 struct aiocb iocb; member in struct:ioreq
1131 struct aiocb *iocb; local
1147 ioreq[i].iocb.aio_nbytes = sizeof(ioreq[i].buffer);
1148 ioreq[i].iocb.aio_fildes = s[0];
1149 ioreq[i].iocb.aio_buf = ioreq[i].buffer;
1150 ATF_REQUIRE(aio_read(&ioreq[i].iocb) == 0);
1157 ATF_REQUIRE(aio_waitcomplete(&iocb, NULL) == 1);
1160 if (iocb == &ioreq[0].iocb)
1182 struct aiocb iocb, *iocbp; local
1278 struct aiocb iocb; local
1314 struct aiocb iocb; local
1352 struct aiocb iocb, *iocbp; local
1419 struct aiocb iocb; local
1486 struct aiocb iocb; local
1523 struct aiocb iocb; member in struct:__anon6319
1780 struct aiocb iocb; local
[all...]
H A Dlio_kqueue_test.c57 struct aiocb *iocb[MAX_IOCBS]; local
110 lio[j][i] = iocb[k] =
112 iocb[k]->aio_nbytes = sizeof(buffer);
113 iocb[k]->aio_buf = buffer;
114 iocb[k]->aio_fildes = fd;
115 iocb[k]->aio_offset
116 = iocb[k]->aio_nbytes * k * (run + 1);
119 printf("hello iocb[k] %jd\n",
120 (intmax_t)iocb[k]->aio_offset);
122 iocb[
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_linux.cpp93 CHECK_TYPE_SIZE(iocb); variable
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);
/freebsd-current/tests/sys/fs/fusefs/
H A Dfsyncdir.cc93 struct aiocb iocb, *piocb; local
103 bzero(&iocb, sizeof(iocb));
104 iocb.aio_fildes = fd;
106 ASSERT_EQ(0, aio_fsync(O_SYNC, &iocb)) << strerror(errno);
H A Dfsync.cc101 struct aiocb iocb, *piocb; local
113 bzero(&iocb, sizeof(iocb));
114 iocb.aio_fildes = fd;
116 ASSERT_EQ(0, aio_fsync(O_SYNC, &iocb)) << strerror(errno);
H A Dread.cc167 struct aiocb iocb, *piocb; local
176 iocb.aio_nbytes = bufsize;
177 iocb.aio_fildes = fd;
178 iocb.aio_buf = buf;
179 iocb.aio_offset = 0;
180 iocb.aio_sigevent.sigev_notify = SIGEV_NONE;
181 ASSERT_EQ(0, aio_read(&iocb)) << strerror(errno);
H A Dwrite.cc244 struct aiocb iocb, *piocb; local
253 iocb.aio_nbytes = bufsize;
254 iocb.aio_fildes = fd;
255 iocb.aio_buf = __DECONST(void *, CONTENTS);
256 iocb.aio_offset = offset;
257 iocb.aio_sigevent.sigev_notify = SIGEV_NONE;
258 ASSERT_EQ(0, aio_write(&iocb)) << strerror(errno);
/freebsd-current/tools/test/gpioevents/
H A Dgpioevents.c384 struct aiocb iocb; local
398 bzero(&iocb, sizeof(iocb));
400 iocb.aio_fildes = handle;
401 iocb.aio_nbytes = sizeof(buffer);
402 iocb.aio_offset = 0;
403 iocb.aio_buf = buffer;
411 res = aio_read(&iocb);
415 res = aio_error(&iocb);
419 res = aio_return(&iocb);
[all...]
/freebsd-current/libexec/bootpd/
H A Dhwaddr.c146 struct strioctl iocb; local
151 iocb.ic_cmd = SIOCSARP;
152 iocb.ic_timout = 0;
153 iocb.ic_dp = (char *)&arpreq;
154 iocb.ic_len = sizeof(arpreq);
155 if (ioctl(fd, I_STR, (caddr_t)&iocb) < 0) {
/freebsd-current/crypto/openssl/engines/
H A De_afalg.h74 struct iocb cbt[MAX_INFLIGHTS];
H A De_afalg.c122 static ossl_inline int io_read(aio_context_t ctx, long n, struct iocb **iocb) argument
124 return syscall(__NR_io_submit, ctx, n, iocb);
270 struct iocb *cb;
/freebsd-current/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp.h667 int sdp_sendmsg_zcopy(struct kiocb *iocb, struct socket *sk, struct iovec *iov);
H A Dsdp_zcopy.c713 int sdp_sendmsg_zcopy(struct kiocb *iocb, struct socket *sk, struct iovec *iov) argument
/freebsd-current/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h776 #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), \
2448 void __sanitizer_syscall_pre_impl_io_cancel(long ctx_id, long iocb,
2450 void __sanitizer_syscall_post_impl_io_cancel(long res, long ctx_id, long iocb,
/freebsd-current/contrib/capsicum-test/
H A Dlinux.cc1142 struct iocb req;
1150 struct iocb* reqs[1] = {&req};

Completed in 211 milliseconds