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

Function queue_accept_multishot

test/accept.c:97–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static 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
115static void queue_accept_conn(struct io_uring *ring, int fd,
116 struct accept_test_args args)

Callers 2

queue_accept_connFunction · 0.85
accept_connFunction · 0.85

Calls 3

io_uring_submitFunction · 0.85
io_uring_get_sqeFunction · 0.50

Tested by

no test coverage detected