Ignore:
File:
1 edited

Legend:

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

    r2606a03 r97c3159  
    101101        #endif
    102102
     103
    103104        #define __submit_prelude \
    104105                if( 0 != (submit_flags & LINK_FLAGS) ) { errno = ENOTSUP; return -1; } \
     
    109110                struct io_uring_sqe * sqe; \
    110111                uint32_t idx; \
    111                 uint8_t sflags = REGULAR_FLAGS & submit_flags; \
    112112                [sqe, idx] = __submit_alloc( ring, (uint64_t)(uintptr_t)&data ); \
    113                 sqe->flags = sflags;
     113                sqe->flags = REGULAR_FLAGS & submit_flags;
    114114
    115115        #define __submit_wait \
     
    186186                        __submit_prelude
    187187
    188                         sqe->opcode = IORING_OP_READV;
    189                         sqe->ioprio = 0;
    190                         sqe->fd = fd;
    191                         sqe->off = offset;
    192                         sqe->addr = (uint64_t)(uintptr_t)iov;
    193                         sqe->len = iovcnt;
    194                         sqe->rw_flags = 0;
    195                         sqe->__pad2[0] = sqe->__pad2[1] = sqe->__pad2[2] = 0;
     188                        (*sqe){ IORING_OP_READV, fd, iov, iovcnt, offset };
    196189
    197190                        __submit_wait
Note: See TracChangeset for help on using the changeset viewer.