Ignore:
Timestamp:
Jul 10, 2020, 2:17:49 PM (17 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
59f74a2
Parents:
3a32b3a
Message:

Added quick and dirty support for fixed files reads.
Added support for kernel side polling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/iocall.cfa

    r3a32b3a r20ab637  
    128128                #endif
    129129        }
     130
     131        ssize_t cfa_preadv2_fixed(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags) {
     132                #if !defined(HAVE_LINUX_IO_URING_H) || !defined(IORING_OP_READV)
     133                        return preadv2(fd, iov, iovcnt, offset, flags);
     134                #else
     135                        __submit_prelude
     136
     137                        (*sqe){ IORING_OP_READV, fd, iov, iovcnt, offset };
     138                        sqe->flags |= IOSQE_FIXED_FILE;
     139
     140                        __submit_wait
     141                #endif
     142        }
    130143#endif
    131144
Note: See TracChangeset for help on using the changeset viewer.