- File:
-
- 1 edited
-
libcfa/src/concurrency/iocall.cfa (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/iocall.cfa
r2606a03 r97c3159 101 101 #endif 102 102 103 103 104 #define __submit_prelude \ 104 105 if( 0 != (submit_flags & LINK_FLAGS) ) { errno = ENOTSUP; return -1; } \ … … 109 110 struct io_uring_sqe * sqe; \ 110 111 uint32_t idx; \ 111 uint8_t sflags = REGULAR_FLAGS & submit_flags; \112 112 [sqe, idx] = __submit_alloc( ring, (uint64_t)(uintptr_t)&data ); \ 113 sqe->flags = sflags;113 sqe->flags = REGULAR_FLAGS & submit_flags; 114 114 115 115 #define __submit_wait \ … … 186 186 __submit_prelude 187 187 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 }; 196 189 197 190 __submit_wait
Note:
See TracChangeset
for help on using the changeset viewer.