Create 2 sockets (tx, rx) given the socket type */
| 26 | |
| 27 | /* Create 2 sockets (tx, rx) given the socket type */ |
| 28 | static struct fds create_sockets(bool stream) |
| 29 | { |
| 30 | struct fds retval; |
| 31 | int fd[2]; |
| 32 | |
| 33 | t_create_socket_pair(fd, stream); |
| 34 | |
| 35 | retval.tx = fd[0]; |
| 36 | retval.rx = fd[1]; |
| 37 | |
| 38 | return retval; |
| 39 | } |
| 40 | |
| 41 | static int create_sqe_and_submit(struct io_uring *ring, int32_t fd, int op) |
| 42 | { |
no test coverage detected