| 95 | } |
| 96 | |
| 97 | static void queue_accept_multishot(struct io_uring *ring, int fd, |
| 98 | int idx, bool fixed) |
| 99 | { |
| 100 | struct io_uring_sqe *sqe = io_uring_get_sqe(ring); |
| 101 | int ret; |
| 102 | |
| 103 | if (fixed) |
| 104 | io_uring_prep_multishot_accept_direct(sqe, fd, |
| 105 | NULL, NULL, |
| 106 | 0); |
| 107 | else |
| 108 | io_uring_prep_multishot_accept(sqe, fd, NULL, NULL, 0); |
| 109 | |
| 110 | io_uring_sqe_set_data64(sqe, idx); |
| 111 | ret = io_uring_submit(ring); |
| 112 | assert(ret != -1); |
| 113 | } |
| 114 | |
| 115 | static void queue_accept_conn(struct io_uring *ring, int fd, |
| 116 | struct accept_test_args args) |
no test coverage detected