MCPcopy Create free account
hub / github.com/axboe/liburing / run_getsockopt_test

Function run_getsockopt_test

test/socket-getsetsock-cmd.c:180–197  ·  view source on GitHub ↗

* Run getsockopt tests. Basically comparing io_uring output and systemcall results */

Source from the content-addressed store, hash-verified

178 * Run getsockopt tests. Basically comparing io_uring output and systemcall results
179 */
180static 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

Callers 1

mainFunction · 0.85

Calls 2

run_get_peernameFunction · 0.85
run_get_rcvbufFunction · 0.85

Tested by

no test coverage detected