* Run getsockopt tests. Basically comparing io_uring output and systemcall results */
| 178 | * Run getsockopt tests. Basically comparing io_uring output and systemcall results |
| 179 | */ |
| 180 | static int run_getsockopt_test(struct io_uring *ring, struct fds *sockfds) |
| 181 | { |
| 182 | int err; |
| 183 | |
| 184 | err = run_get_peername(ring, sockfds, false); |
| 185 | if (err) |
| 186 | return err; |
| 187 | |
| 188 | err = run_get_peername(ring, sockfds, true); |
| 189 | if (err) |
| 190 | return err; |
| 191 | |
| 192 | err = run_get_rcvbuf(ring, sockfds, false); |
| 193 | if (err) |
| 194 | return err; |
| 195 | |
| 196 | return run_get_rcvbuf(ring, sockfds, true); |
| 197 | } |
| 198 | |
| 199 | /* |
| 200 | * Given a `val` value, set it in SO_REUSEPORT using io_uring cmd, and read using |
no test coverage detected