Lines Matching refs:iocb
31 int io_submit(aio_context_t ctx, long nr, iocb** iocbpp) { in io_submit()
39 int io_cancel(aio_context_t ctx, iocb* iocbp, io_event* result) { in io_cancel()
43 void io_prep(iocb* iocb, int fd, const void* buf, uint64_t count, int64_t offset, bool read) { in io_prep() argument
44 memset(iocb, 0, sizeof(*iocb)); in io_prep()
45 iocb->aio_fildes = fd; in io_prep()
46 iocb->aio_lio_opcode = read ? IOCB_CMD_PREAD : IOCB_CMD_PWRITE; in io_prep()
47 iocb->aio_reqprio = 0; in io_prep()
48 iocb->aio_buf = reinterpret_cast<uint64_t>(buf); in io_prep()
49 iocb->aio_nbytes = count; in io_prep()
50 iocb->aio_offset = offset; in io_prep()
53 void io_prep_pread(struct iocb* iocb, int fd, void* buf, size_t count, long long offset) { in io_prep_pread() argument
54 io_prep(iocb, fd, buf, count, offset, true); in io_prep_pread()
57 void io_prep_pwrite(struct iocb* iocb, int fd, void* buf, size_t count, long long offset) { in io_prep_pwrite() argument
58 io_prep(iocb, fd, buf, count, offset, false); in io_prep_pwrite()