blob: 3812b50b46256030e1696b06e7d4636c4c894259 [file] [log] [blame]
Daniel Willmannf91d2aa2023-01-04 18:20:55 +01001/*! \file osmo_io_uring.c
2 * io_uring backend for osmo_io.
3 *
4 * (C) 2022-2023 by sysmocom s.f.m.c.
5 * Author: Daniel Willmann <daniel@sysmocom.de>
Harald Welte1047ed72023-11-18 18:51:58 +01006 * (C) 2023-2024 by Harald Welte <laforge@osmocom.org>
Daniel Willmannf91d2aa2023-01-04 18:20:55 +01007 *
8 * All Rights Reserved.
9 *
10 * SPDX-License-Identifier: GPL-2.0+
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 */
22
23/* TODO:
24 * Parameters:
25 * - number of simultaneous read/write in uring for given fd
26 *
27 */
28
29#include "../config.h"
30#if defined(__linux__)
31
32#include <stdio.h>
33#include <talloc.h>
34#include <unistd.h>
35#include <string.h>
36#include <stdbool.h>
37#include <errno.h>
38
Harald Welte1047ed72023-11-18 18:51:58 +010039#include <netinet/in.h>
40#include <netinet/sctp.h>
Daniel Willmannf91d2aa2023-01-04 18:20:55 +010041#include <sys/eventfd.h>
42#include <liburing.h>
43
44#include <osmocom/core/osmo_io.h>
45#include <osmocom/core/linuxlist.h>
46#include <osmocom/core/logging.h>
47#include <osmocom/core/msgb.h>
48#include <osmocom/core/select.h>
49#include <osmocom/core/talloc.h>
50#include <osmocom/core/utils.h>
51#include <osmocom/core/socket.h>
52
53#include "osmo_io_internal.h"
54
55#define IOFD_URING_ENTRIES 4096
56
57struct osmo_io_uring {
58 struct osmo_fd event_ofd;
59 struct io_uring ring;
60};
61
62static __thread struct osmo_io_uring g_ring;
63
64static void iofd_uring_cqe(struct io_uring *ring);
Harald Welte987a86a2023-11-18 18:46:24 +010065
66/*! read call-back for eventfd notifying us if entries are in the completion queue */
Daniel Willmannf91d2aa2023-01-04 18:20:55 +010067static int iofd_uring_poll_cb(struct osmo_fd *ofd, unsigned int what)
68{
69 struct io_uring *ring = ofd->data;
70 eventfd_t val;
71 int rc;
72
73 if (what & OSMO_FD_READ) {
74 rc = eventfd_read(ofd->fd, &val);
75 if (rc < 0) {
76 LOGP(DLIO, LOGL_ERROR, "eventfd_read() returned error\n");
77 return rc;
78 }
79
80 iofd_uring_cqe(ring);
81 }
82 if (what & OSMO_FD_WRITE)
83 OSMO_ASSERT(0);
84
85 return 0;
86}
87
88/*! initialize the uring and tie it into our event loop */
89void osmo_iofd_uring_init(void)
90{
91 int rc;
92 rc = io_uring_queue_init(IOFD_URING_ENTRIES, &g_ring.ring, 0);
93 if (rc < 0)
94 OSMO_ASSERT(0);
95
96 rc = eventfd(0, 0);
97 if (rc < 0) {
98 io_uring_queue_exit(&g_ring.ring);
99 OSMO_ASSERT(0);
100 }
101
102 osmo_fd_setup(&g_ring.event_ofd, rc, OSMO_FD_READ, iofd_uring_poll_cb, &g_ring.ring, 0);
103 osmo_fd_register(&g_ring.event_ofd);
104 io_uring_register_eventfd(&g_ring.ring, rc);
105}
106
107
108static void iofd_uring_submit_recv(struct osmo_io_fd *iofd, enum iofd_msg_action action)
109{
110 struct msgb *msg;
111 struct iofd_msghdr *msghdr;
112 struct io_uring_sqe *sqe;
113
114 msg = iofd_msgb_pending_or_alloc(iofd);
115 if (!msg) {
116 LOGPIO(iofd, LOGL_ERROR, "Could not allocate msgb for reading\n");
117 OSMO_ASSERT(0);
118 }
119
Harald Welte1047ed72023-11-18 18:51:58 +0100120 msghdr = iofd_msghdr_alloc(iofd, action, msg, iofd->cmsg_size);
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100121 if (!msghdr) {
122 LOGPIO(iofd, LOGL_ERROR, "Could not allocate msghdr for reading\n");
123 OSMO_ASSERT(0);
124 }
125
126 msghdr->iov[0].iov_base = msg->tail;
127 msghdr->iov[0].iov_len = msgb_tailroom(msg);
128
129 switch (action) {
130 case IOFD_ACT_READ:
131 break;
Harald Welte1047ed72023-11-18 18:51:58 +0100132 case IOFD_ACT_RECVMSG:
133 msghdr->hdr.msg_control = msghdr->cmsg;
134 msghdr->hdr.msg_controllen = iofd->cmsg_size;
135 /* fall-through */
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100136 case IOFD_ACT_RECVFROM:
137 msghdr->hdr.msg_iov = &msghdr->iov[0];
138 msghdr->hdr.msg_iovlen = 1;
139 msghdr->hdr.msg_name = &msghdr->osa.u.sa;
140 msghdr->hdr.msg_namelen = osmo_sockaddr_size(&msghdr->osa);
141 break;
142 default:
143 OSMO_ASSERT(0);
144 }
145
146 sqe = io_uring_get_sqe(&g_ring.ring);
147 if (!sqe) {
148 LOGPIO(iofd, LOGL_ERROR, "Could not get io_uring_sqe\n");
149 OSMO_ASSERT(0);
150 }
151
152 switch (action) {
153 case IOFD_ACT_READ:
154 io_uring_prep_readv(sqe, iofd->fd, msghdr->iov, 1, 0);
155 break;
Harald Welte1047ed72023-11-18 18:51:58 +0100156 case IOFD_ACT_RECVMSG:
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100157 case IOFD_ACT_RECVFROM:
158 io_uring_prep_recvmsg(sqe, iofd->fd, &msghdr->hdr, msghdr->flags);
159 break;
160 default:
161 OSMO_ASSERT(0);
162 }
163 io_uring_sqe_set_data(sqe, msghdr);
164
165 io_uring_submit(&g_ring.ring);
166 /* NOTE: This only works if we have one read per fd */
167 iofd->u.uring.read_msghdr = msghdr;
168}
169
Harald Welte987a86a2023-11-18 18:46:24 +0100170/*! completion call-back for READ/RECVFROM */
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100171static void iofd_uring_handle_recv(struct iofd_msghdr *msghdr, int rc)
172{
173 struct osmo_io_fd *iofd = msghdr->iofd;
174 struct msgb *msg = msghdr->msg;
175
176 if (rc > 0)
177 msgb_put(msg, rc);
178
179 if (!IOFD_FLAG_ISSET(iofd, IOFD_FLAG_CLOSED))
180 iofd_handle_recv(iofd, msg, rc, msghdr);
181
182 if (iofd->u.uring.read_enabled && !IOFD_FLAG_ISSET(iofd, IOFD_FLAG_CLOSED))
183 iofd_uring_submit_recv(iofd, msghdr->action);
184 else
185 iofd->u.uring.read_msghdr = NULL;
186
187
188 iofd_msghdr_free(msghdr);
189}
190
191static int iofd_uring_submit_tx(struct osmo_io_fd *iofd);
192
Harald Welte987a86a2023-11-18 18:46:24 +0100193/*! completion call-back for WRITE/SENDTO */
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100194static void iofd_uring_handle_tx(struct iofd_msghdr *msghdr, int rc)
195{
196 struct osmo_io_fd *iofd = msghdr->iofd;
197
Daniel Willmann84611882023-11-21 10:17:00 +0100198 if (OSMO_UNLIKELY(IOFD_FLAG_ISSET(iofd, IOFD_FLAG_CLOSED))) {
199 msgb_free(msghdr->msg);
200 iofd_msghdr_free(msghdr);
201 } else {
202 iofd_handle_send_completion(iofd, rc, msghdr);
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100203 }
204
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100205 iofd->u.uring.write_msghdr = NULL;
Harald Welte987a86a2023-11-18 18:46:24 +0100206 /* submit the next to-be-transmitted message for this file descriptor */
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100207 if (iofd->u.uring.write_enabled && !IOFD_FLAG_ISSET(iofd, IOFD_FLAG_CLOSED))
208 iofd_uring_submit_tx(iofd);
209}
210
Harald Welte987a86a2023-11-18 18:46:24 +0100211/*! handle completion of a single I/O message */
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100212static void iofd_uring_handle_completion(struct iofd_msghdr *msghdr, int res)
213{
214 struct osmo_io_fd *iofd = msghdr->iofd;
215
216 IOFD_FLAG_SET(iofd, IOFD_FLAG_IN_CALLBACK);
217
218 switch (msghdr->action) {
219 case IOFD_ACT_READ:
220 case IOFD_ACT_RECVFROM:
Harald Welte1047ed72023-11-18 18:51:58 +0100221 case IOFD_ACT_RECVMSG:
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100222 iofd_uring_handle_recv(msghdr, res);
223 break;
224 case IOFD_ACT_WRITE:
225 case IOFD_ACT_SENDTO:
Harald Welte1047ed72023-11-18 18:51:58 +0100226 case IOFD_ACT_SENDMSG:
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100227 iofd_uring_handle_tx(msghdr, res);
228 break;
229 default:
230 OSMO_ASSERT(0)
231 }
232
Andreas Eversberg8db60092024-02-15 10:16:33 +0100233 IOFD_FLAG_UNSET(iofd, IOFD_FLAG_IN_CALLBACK);
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100234
235 if (IOFD_FLAG_ISSET(iofd, IOFD_FLAG_TO_FREE) && !iofd->u.uring.read_msghdr && !iofd->u.uring.write_msghdr)
236 talloc_free(iofd);
237}
238
Harald Welte987a86a2023-11-18 18:46:24 +0100239/*! process all pending completion queue entries in given io_uring */
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100240static void iofd_uring_cqe(struct io_uring *ring)
241{
242 int rc;
243 struct io_uring_cqe *cqe;
244 struct iofd_msghdr *msghdr;
245
246 while (io_uring_peek_cqe(ring, &cqe) == 0) {
247
248 msghdr = io_uring_cqe_get_data(cqe);
249 if (!msghdr) {
250 LOGP(DLIO, LOGL_DEBUG, "Cancellation returned\n");
251 io_uring_cqe_seen(ring, cqe);
252 continue;
253 }
Andreas Eversberg8db60092024-02-15 10:16:33 +0100254 if (!msghdr->iofd) {
255 io_uring_cqe_seen(ring, cqe);
256 iofd_msghdr_free(msghdr);
257 continue;
258 }
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100259
260 rc = cqe->res;
261 /* Hand the entry back to the kernel before */
262 io_uring_cqe_seen(ring, cqe);
263
264 iofd_uring_handle_completion(msghdr, rc);
265
266 }
267}
268
Harald Welte987a86a2023-11-18 18:46:24 +0100269/*! will submit the next to-be-transmitted message for given iofd */
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100270static int iofd_uring_submit_tx(struct osmo_io_fd *iofd)
271{
272 struct io_uring_sqe *sqe;
273 struct iofd_msghdr *msghdr;
274
275 msghdr = iofd_txqueue_dequeue(iofd);
276 if (!msghdr)
277 return -ENODATA;
278
279 sqe = io_uring_get_sqe(&g_ring.ring);
280 if (!sqe) {
281 LOGPIO(iofd, LOGL_ERROR, "Could not get io_uring_sqe\n");
282 OSMO_ASSERT(0);
283 }
284
285 io_uring_sqe_set_data(sqe, msghdr);
286
287 switch (msghdr->action) {
288 case IOFD_ACT_WRITE:
289 case IOFD_ACT_SENDTO:
Harald Welte1047ed72023-11-18 18:51:58 +0100290 case IOFD_ACT_SENDMSG:
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100291 io_uring_prep_sendmsg(sqe, msghdr->iofd->fd, &msghdr->hdr, msghdr->flags);
292 break;
293 default:
294 OSMO_ASSERT(0);
295 }
296
297 io_uring_submit(&g_ring.ring);
298 iofd->u.uring.write_msghdr = msghdr;
299
300 return 0;
301}
302
303static void iofd_uring_write_enable(struct osmo_io_fd *iofd);
304static void iofd_uring_read_enable(struct osmo_io_fd *iofd);
305
306static int iofd_uring_register(struct osmo_io_fd *iofd)
307{
308 return 0;
309}
310
311static int iofd_uring_unregister(struct osmo_io_fd *iofd)
312{
313 struct io_uring_sqe *sqe;
Andreas Eversberg8db60092024-02-15 10:16:33 +0100314 struct iofd_msghdr *msghdr;
315
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100316 if (iofd->u.uring.read_msghdr) {
Andreas Eversberg8db60092024-02-15 10:16:33 +0100317 msghdr = iofd->u.uring.read_msghdr;
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100318 sqe = io_uring_get_sqe(&g_ring.ring);
319 OSMO_ASSERT(sqe != NULL);
320 io_uring_sqe_set_data(sqe, NULL);
321 LOGPIO(iofd, LOGL_DEBUG, "Cancelling read\n");
Andreas Eversberg8db60092024-02-15 10:16:33 +0100322 iofd->u.uring.read_msghdr = NULL;
323 talloc_steal(OTC_GLOBAL, msghdr);
324 msghdr->iofd = NULL;
325 io_uring_prep_cancel(sqe, msghdr, 0);
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100326 }
327
328 if (iofd->u.uring.write_msghdr) {
Andreas Eversberg8db60092024-02-15 10:16:33 +0100329 msghdr = iofd->u.uring.write_msghdr;
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100330 sqe = io_uring_get_sqe(&g_ring.ring);
331 OSMO_ASSERT(sqe != NULL);
332 io_uring_sqe_set_data(sqe, NULL);
333 LOGPIO(iofd, LOGL_DEBUG, "Cancelling write\n");
Andreas Eversberg8db60092024-02-15 10:16:33 +0100334 iofd->u.uring.write_msghdr = NULL;
335 talloc_steal(OTC_GLOBAL, msghdr);
336 msgb_free(msghdr->msg);
337 msghdr->iofd = NULL;
338 io_uring_prep_cancel(sqe, msghdr, 0);
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100339 }
340 io_uring_submit(&g_ring.ring);
341
Andreas Eversbergd7256c62024-02-09 13:01:15 +0100342 if (IOFD_FLAG_ISSET(iofd, IOFD_FLAG_NOTIFY_CONNECTED)) {
343 osmo_fd_unregister(&iofd->u.uring.connect_ofd);
344 IOFD_FLAG_UNSET(iofd, IOFD_FLAG_NOTIFY_CONNECTED);
345 }
346
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100347 return 0;
348}
349
350static void iofd_uring_write_enable(struct osmo_io_fd *iofd)
351{
352 iofd->u.uring.write_enabled = true;
353
354 if (iofd->u.uring.write_msghdr)
355 return;
356
Andreas Eversbergd7256c62024-02-09 13:01:15 +0100357 /* This function is called again, once the socket is connected. */
358 if (IOFD_FLAG_ISSET(iofd, IOFD_FLAG_NOTIFY_CONNECTED))
359 return;
360
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100361 if (osmo_iofd_txqueue_len(iofd) > 0)
362 iofd_uring_submit_tx(iofd);
363 else if (iofd->mode == OSMO_IO_FD_MODE_READ_WRITE) {
364 /* Empty write request to check when the socket is connected */
365 struct iofd_msghdr *msghdr;
366 struct io_uring_sqe *sqe;
367 struct msgb *msg = msgb_alloc_headroom(0, 0, "io_uring write dummy");
368 if (!msg) {
369 LOGPIO(iofd, LOGL_ERROR, "Could not allocate msgb for writing\n");
370 OSMO_ASSERT(0);
371 }
Harald Welte1047ed72023-11-18 18:51:58 +0100372 msghdr = iofd_msghdr_alloc(iofd, IOFD_ACT_WRITE, msg, 0);
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100373 if (!msghdr) {
374 LOGPIO(iofd, LOGL_ERROR, "Could not allocate msghdr for writing\n");
375 OSMO_ASSERT(0);
376 }
377
378 msghdr->iov[0].iov_base = msgb_data(msg);
Harald Welte1047ed72023-11-18 18:51:58 +0100379 msghdr->iov[0].iov_len = msgb_length(msg);
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100380
381 sqe = io_uring_get_sqe(&g_ring.ring);
382 if (!sqe) {
383 LOGPIO(iofd, LOGL_ERROR, "Could not get io_uring_sqe\n");
384 OSMO_ASSERT(0);
385 }
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100386 io_uring_prep_writev(sqe, iofd->fd, msghdr->iov, 1, 0);
387 io_uring_sqe_set_data(sqe, msghdr);
388
389 io_uring_submit(&g_ring.ring);
390 iofd->u.uring.write_msghdr = msghdr;
391 }
392}
393
394static void iofd_uring_write_disable(struct osmo_io_fd *iofd)
395{
396 iofd->u.uring.write_enabled = false;
397}
398
399static void iofd_uring_read_enable(struct osmo_io_fd *iofd)
400{
401 iofd->u.uring.read_enabled = true;
402
403 if (iofd->u.uring.read_msghdr)
404 return;
405
Andreas Eversbergd7256c62024-02-09 13:01:15 +0100406 /* This function is called again, once the socket is connected. */
407 if (IOFD_FLAG_ISSET(iofd, IOFD_FLAG_NOTIFY_CONNECTED))
408 return;
409
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100410 switch (iofd->mode) {
411 case OSMO_IO_FD_MODE_READ_WRITE:
412 iofd_uring_submit_recv(iofd, IOFD_ACT_READ);
413 break;
414 case OSMO_IO_FD_MODE_RECVFROM_SENDTO:
415 iofd_uring_submit_recv(iofd, IOFD_ACT_RECVFROM);
416 break;
Harald Welte1047ed72023-11-18 18:51:58 +0100417 case OSMO_IO_FD_MODE_RECVMSG_SENDMSG:
418 iofd_uring_submit_recv(iofd, IOFD_ACT_RECVMSG);
419 break;
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100420 default:
421 OSMO_ASSERT(0);
422 }
423}
424
425static void iofd_uring_read_disable(struct osmo_io_fd *iofd)
426{
427 iofd->u.uring.read_enabled = false;
428}
429
430static int iofd_uring_close(struct osmo_io_fd *iofd)
431{
432 iofd_uring_read_disable(iofd);
433 iofd_uring_write_disable(iofd);
434 iofd_uring_unregister(iofd);
435 return close(iofd->fd);
436}
437
Andreas Eversbergd7256c62024-02-09 13:01:15 +0100438/* called via osmocom poll/select main handling once outbound non-blocking connect() completes */
439static int iofd_uring_connected_cb(struct osmo_fd *ofd, unsigned int what)
440{
441 struct osmo_io_fd *iofd = ofd->data;
442
443 LOGPIO(iofd, LOGL_DEBUG, "Socket connected or failed.");
444
445 if (!(what & OSMO_FD_WRITE))
446 return 0;
447
448 /* Unregister from poll/select handling. */
449 osmo_fd_unregister(ofd);
450 IOFD_FLAG_UNSET(iofd, IOFD_FLAG_NOTIFY_CONNECTED);
451
452 /* Notify the application about this via a zero-length write completion call-back. */
453 IOFD_FLAG_SET(iofd, IOFD_FLAG_IN_CALLBACK);
454 switch (iofd->mode) {
455 case OSMO_IO_FD_MODE_READ_WRITE:
456 iofd->io_ops.write_cb(iofd, 0, NULL);
457 break;
458 case OSMO_IO_FD_MODE_RECVFROM_SENDTO:
459 iofd->io_ops.sendto_cb(iofd, 0, NULL, NULL);
460 break;
461 case OSMO_IO_FD_MODE_RECVMSG_SENDMSG:
462 iofd->io_ops.sendmsg_cb(iofd, 0, NULL);
463 break;
464 }
465 IOFD_FLAG_UNSET(iofd, IOFD_FLAG_IN_CALLBACK);
466
467 /* If write/read notifications are pending, enable it now. */
468 if (iofd->u.uring.write_enabled && !IOFD_FLAG_ISSET(iofd, IOFD_FLAG_CLOSED))
469 iofd_uring_write_enable(iofd);
470 if (iofd->u.uring.read_enabled && !IOFD_FLAG_ISSET(iofd, IOFD_FLAG_CLOSED))
471 iofd_uring_read_enable(iofd);
472
473 if (IOFD_FLAG_ISSET(iofd, IOFD_FLAG_TO_FREE) && !iofd->u.uring.read_msghdr && !iofd->u.uring.write_msghdr)
474 talloc_free(iofd);
475 return 0;
476}
477
478static void iofd_uring_notify_connected(struct osmo_io_fd *iofd)
479{
480 if (iofd->mode == OSMO_IO_FD_MODE_RECVMSG_SENDMSG) {
481 /* Don't call this function after enabling read or write. */
482 OSMO_ASSERT(!iofd->u.uring.write_enabled && !iofd->u.uring.read_enabled);
483
484 /* Use a temporary osmo_fd which we can use to notify us once the connection is established
485 * or failed (indicated by FD becoming writable).
486 * This is needed as (at least for SCTP sockets) one cannot submit a zero-length writev/sendmsg
487 * in order to get notification when the socekt is writable.*/
488 if (!IOFD_FLAG_ISSET(iofd, IOFD_FLAG_NOTIFY_CONNECTED)) {
489 osmo_fd_setup(&iofd->u.uring.connect_ofd, iofd->fd, OSMO_FD_WRITE,
490 iofd_uring_connected_cb, iofd, 0);
491 osmo_fd_register(&iofd->u.uring.connect_ofd);
492 IOFD_FLAG_SET(iofd, IOFD_FLAG_NOTIFY_CONNECTED);
493 }
494 } else
495 iofd_uring_write_enable(iofd);
496}
497
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100498const struct iofd_backend_ops iofd_uring_ops = {
499 .register_fd = iofd_uring_register,
500 .unregister_fd = iofd_uring_unregister,
501 .close = iofd_uring_close,
502 .write_enable = iofd_uring_write_enable,
503 .write_disable = iofd_uring_write_disable,
504 .read_enable = iofd_uring_read_enable,
505 .read_disable = iofd_uring_read_disable,
Andreas Eversbergd7256c62024-02-09 13:01:15 +0100506 .notify_connected = iofd_uring_notify_connected,
Daniel Willmannf91d2aa2023-01-04 18:20:55 +0100507};
508
509#endif /* defined(__linux__) */