blob: 4d52cf00648b9695c526289fb546b437a5c73d30 [file] [log] [blame]
Christopher Ferris24f97eb2019-05-20 12:58:13 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef LINUX_IO_URING_H
20#define LINUX_IO_URING_H
21#include <linux/fs.h>
22#include <linux/types.h>
Christopher Ferris7447a1c2022-10-04 18:24:44 -070023#include <linux/time_types.h>
24#ifdef __cplusplus
25extern "C" {
26#endif
Christopher Ferris24f97eb2019-05-20 12:58:13 -070027struct io_uring_sqe {
28 __u8 opcode;
29 __u8 flags;
30 __u16 ioprio;
31 __s32 fd;
Christopher Ferrisd32ca142020-02-04 16:16:51 -080032 union {
33 __u64 off;
34 __u64 addr2;
Christopher Ferris80ae69d2022-08-02 16:32:21 -070035 struct {
36 __u32 cmd_op;
37 __u32 __pad1;
38 };
Christopher Ferrisd32ca142020-02-04 16:16:51 -080039 };
Christopher Ferrisaf09c702020-06-01 20:29:29 -070040 union {
41 __u64 addr;
42 __u64 splice_off_in;
43 };
Christopher Ferris24f97eb2019-05-20 12:58:13 -070044 __u32 len;
45 union {
46 __kernel_rwf_t rw_flags;
47 __u32 fsync_flags;
48 __u16 poll_events;
Christopher Ferris25c18d42020-10-14 17:42:58 -070049 __u32 poll32_events;
Christopher Ferrisaeddbcf2019-07-08 12:45:46 -070050 __u32 sync_range_flags;
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070051 __u32 msg_flags;
Christopher Ferris9584fa42019-12-09 15:36:13 -080052 __u32 timeout_flags;
Christopher Ferrisd32ca142020-02-04 16:16:51 -080053 __u32 accept_flags;
54 __u32 cancel_flags;
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -070055 __u32 open_flags;
56 __u32 statx_flags;
57 __u32 fadvise_advice;
Christopher Ferrisaf09c702020-06-01 20:29:29 -070058 __u32 splice_flags;
Christopher Ferris05667cd2021-02-16 16:01:34 -080059 __u32 rename_flags;
60 __u32 unlink_flags;
Christopher Ferris2abfa9e2021-11-01 16:26:06 -070061 __u32 hardlink_flags;
Christopher Ferris80ae69d2022-08-02 16:32:21 -070062 __u32 xattr_flags;
Christopher Ferris7447a1c2022-10-04 18:24:44 -070063 __u32 msg_ring_flags;
Christopher Ferris24f97eb2019-05-20 12:58:13 -070064 };
65 __u64 user_data;
66 union {
Christopher Ferris3a39c0b2021-09-02 00:03:38 +000067 __u16 buf_index;
68 __u16 buf_group;
69 } __attribute__((packed));
70 __u16 personality;
Christopher Ferris2abfa9e2021-11-01 16:26:06 -070071 union {
72 __s32 splice_fd_in;
73 __u32 file_index;
Christopher Ferris7447a1c2022-10-04 18:24:44 -070074 struct {
75 __u16 addr_len;
76 __u16 __pad3[1];
77 };
Christopher Ferris2abfa9e2021-11-01 16:26:06 -070078 };
Christopher Ferris80ae69d2022-08-02 16:32:21 -070079 union {
80 struct {
81 __u64 addr3;
82 __u64 __pad2[1];
83 };
84 __u8 cmd[0];
85 };
Christopher Ferris24f97eb2019-05-20 12:58:13 -070086};
Christopher Ferris80ae69d2022-08-02 16:32:21 -070087#define IORING_FILE_INDEX_ALLOC (~0U)
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -070088enum {
89 IOSQE_FIXED_FILE_BIT,
90 IOSQE_IO_DRAIN_BIT,
91 IOSQE_IO_LINK_BIT,
92 IOSQE_IO_HARDLINK_BIT,
93 IOSQE_ASYNC_BIT,
Christopher Ferrisaf09c702020-06-01 20:29:29 -070094 IOSQE_BUFFER_SELECT_BIT,
Christopher Ferris1ed55342022-03-22 16:06:25 -070095 IOSQE_CQE_SKIP_SUCCESS_BIT,
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -070096};
97#define IOSQE_FIXED_FILE (1U << IOSQE_FIXED_FILE_BIT)
98#define IOSQE_IO_DRAIN (1U << IOSQE_IO_DRAIN_BIT)
99#define IOSQE_IO_LINK (1U << IOSQE_IO_LINK_BIT)
100#define IOSQE_IO_HARDLINK (1U << IOSQE_IO_HARDLINK_BIT)
101#define IOSQE_ASYNC (1U << IOSQE_ASYNC_BIT)
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700102#define IOSQE_BUFFER_SELECT (1U << IOSQE_BUFFER_SELECT_BIT)
Christopher Ferris1ed55342022-03-22 16:06:25 -0700103#define IOSQE_CQE_SKIP_SUCCESS (1U << IOSQE_CQE_SKIP_SUCCESS_BIT)
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700104#define IORING_SETUP_IOPOLL (1U << 0)
105#define IORING_SETUP_SQPOLL (1U << 1)
106#define IORING_SETUP_SQ_AFF (1U << 2)
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800107#define IORING_SETUP_CQSIZE (1U << 3)
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -0700108#define IORING_SETUP_CLAMP (1U << 4)
109#define IORING_SETUP_ATTACH_WQ (1U << 5)
Christopher Ferris32ff3f82020-12-14 13:10:04 -0800110#define IORING_SETUP_R_DISABLED (1U << 6)
Christopher Ferris10a76e62022-06-08 13:31:52 -0700111#define IORING_SETUP_SUBMIT_ALL (1U << 7)
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700112#define IORING_SETUP_COOP_TASKRUN (1U << 8)
113#define IORING_SETUP_TASKRUN_FLAG (1U << 9)
114#define IORING_SETUP_SQE128 (1U << 10)
115#define IORING_SETUP_CQE32 (1U << 11)
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700116#define IORING_SETUP_SINGLE_ISSUER (1U << 12)
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700117enum io_uring_op {
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800118 IORING_OP_NOP,
119 IORING_OP_READV,
120 IORING_OP_WRITEV,
121 IORING_OP_FSYNC,
122 IORING_OP_READ_FIXED,
123 IORING_OP_WRITE_FIXED,
124 IORING_OP_POLL_ADD,
125 IORING_OP_POLL_REMOVE,
126 IORING_OP_SYNC_FILE_RANGE,
127 IORING_OP_SENDMSG,
128 IORING_OP_RECVMSG,
129 IORING_OP_TIMEOUT,
130 IORING_OP_TIMEOUT_REMOVE,
131 IORING_OP_ACCEPT,
132 IORING_OP_ASYNC_CANCEL,
133 IORING_OP_LINK_TIMEOUT,
134 IORING_OP_CONNECT,
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -0700135 IORING_OP_FALLOCATE,
136 IORING_OP_OPENAT,
137 IORING_OP_CLOSE,
138 IORING_OP_FILES_UPDATE,
139 IORING_OP_STATX,
140 IORING_OP_READ,
141 IORING_OP_WRITE,
142 IORING_OP_FADVISE,
143 IORING_OP_MADVISE,
144 IORING_OP_SEND,
145 IORING_OP_RECV,
146 IORING_OP_OPENAT2,
147 IORING_OP_EPOLL_CTL,
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700148 IORING_OP_SPLICE,
149 IORING_OP_PROVIDE_BUFFERS,
150 IORING_OP_REMOVE_BUFFERS,
Christopher Ferris8177cdf2020-08-03 11:53:55 -0700151 IORING_OP_TEE,
Christopher Ferris05667cd2021-02-16 16:01:34 -0800152 IORING_OP_SHUTDOWN,
153 IORING_OP_RENAMEAT,
154 IORING_OP_UNLINKAT,
Christopher Ferris2abfa9e2021-11-01 16:26:06 -0700155 IORING_OP_MKDIRAT,
156 IORING_OP_SYMLINKAT,
157 IORING_OP_LINKAT,
Christopher Ferris10a76e62022-06-08 13:31:52 -0700158 IORING_OP_MSG_RING,
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700159 IORING_OP_FSETXATTR,
160 IORING_OP_SETXATTR,
161 IORING_OP_FGETXATTR,
162 IORING_OP_GETXATTR,
163 IORING_OP_SOCKET,
164 IORING_OP_URING_CMD,
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700165 IORING_OP_SEND_ZC,
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800166 IORING_OP_LAST,
167};
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700168#define IORING_FSYNC_DATASYNC (1U << 0)
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800169#define IORING_TIMEOUT_ABS (1U << 0)
Christopher Ferris05667cd2021-02-16 16:01:34 -0800170#define IORING_TIMEOUT_UPDATE (1U << 1)
Christopher Ferris2abfa9e2021-11-01 16:26:06 -0700171#define IORING_TIMEOUT_BOOTTIME (1U << 2)
172#define IORING_TIMEOUT_REALTIME (1U << 3)
173#define IORING_LINK_TIMEOUT_UPDATE (1U << 4)
Christopher Ferrisa4792612022-01-10 13:51:15 -0800174#define IORING_TIMEOUT_ETIME_SUCCESS (1U << 5)
Christopher Ferris2abfa9e2021-11-01 16:26:06 -0700175#define IORING_TIMEOUT_CLOCK_MASK (IORING_TIMEOUT_BOOTTIME | IORING_TIMEOUT_REALTIME)
176#define IORING_TIMEOUT_UPDATE_MASK (IORING_TIMEOUT_UPDATE | IORING_LINK_TIMEOUT_UPDATE)
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700177#define SPLICE_F_FD_IN_FIXED (1U << 31)
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +0000178#define IORING_POLL_ADD_MULTI (1U << 0)
179#define IORING_POLL_UPDATE_EVENTS (1U << 1)
180#define IORING_POLL_UPDATE_USER_DATA (1U << 2)
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700181#define IORING_POLL_ADD_LEVEL (1U << 3)
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700182#define IORING_ASYNC_CANCEL_ALL (1U << 0)
183#define IORING_ASYNC_CANCEL_FD (1U << 1)
184#define IORING_ASYNC_CANCEL_ANY (1U << 2)
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700185#define IORING_ASYNC_CANCEL_FD_FIXED (1U << 3)
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700186#define IORING_RECVSEND_POLL_FIRST (1U << 0)
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700187#define IORING_RECV_MULTISHOT (1U << 1)
188#define IORING_RECVSEND_FIXED_BUF (1U << 2)
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700189#define IORING_ACCEPT_MULTISHOT (1U << 0)
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700190enum {
191 IORING_MSG_DATA,
192 IORING_MSG_SEND_FD,
193};
194#define IORING_MSG_RING_CQE_SKIP (1U << 0)
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700195struct io_uring_cqe {
196 __u64 user_data;
197 __s32 res;
198 __u32 flags;
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700199 __u64 big_cqe[];
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700200};
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700201#define IORING_CQE_F_BUFFER (1U << 0)
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +0000202#define IORING_CQE_F_MORE (1U << 1)
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700203#define IORING_CQE_F_SOCK_NONEMPTY (1U << 2)
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700204#define IORING_CQE_F_NOTIF (1U << 3)
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700205enum {
206 IORING_CQE_BUFFER_SHIFT = 16,
207};
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700208#define IORING_OFF_SQ_RING 0ULL
209#define IORING_OFF_CQ_RING 0x8000000ULL
210#define IORING_OFF_SQES 0x10000000ULL
211struct io_sqring_offsets {
212 __u32 head;
213 __u32 tail;
214 __u32 ring_mask;
215 __u32 ring_entries;
216 __u32 flags;
217 __u32 dropped;
218 __u32 array;
219 __u32 resv1;
220 __u64 resv2;
221};
222#define IORING_SQ_NEED_WAKEUP (1U << 0)
Christopher Ferris8177cdf2020-08-03 11:53:55 -0700223#define IORING_SQ_CQ_OVERFLOW (1U << 1)
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700224#define IORING_SQ_TASKRUN (1U << 2)
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700225struct io_cqring_offsets {
226 __u32 head;
227 __u32 tail;
228 __u32 ring_mask;
229 __u32 ring_entries;
230 __u32 overflow;
231 __u32 cqes;
Christopher Ferris8177cdf2020-08-03 11:53:55 -0700232 __u32 flags;
233 __u32 resv1;
234 __u64 resv2;
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700235};
Christopher Ferris8177cdf2020-08-03 11:53:55 -0700236#define IORING_CQ_EVENTFD_DISABLED (1U << 0)
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700237#define IORING_ENTER_GETEVENTS (1U << 0)
238#define IORING_ENTER_SQ_WAKEUP (1U << 1)
Christopher Ferris32ff3f82020-12-14 13:10:04 -0800239#define IORING_ENTER_SQ_WAIT (1U << 2)
Christopher Ferris05667cd2021-02-16 16:01:34 -0800240#define IORING_ENTER_EXT_ARG (1U << 3)
Christopher Ferris10a76e62022-06-08 13:31:52 -0700241#define IORING_ENTER_REGISTERED_RING (1U << 4)
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700242struct io_uring_params {
243 __u32 sq_entries;
244 __u32 cq_entries;
245 __u32 flags;
246 __u32 sq_thread_cpu;
247 __u32 sq_thread_idle;
Christopher Ferris9584fa42019-12-09 15:36:13 -0800248 __u32 features;
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -0700249 __u32 wq_fd;
250 __u32 resv[3];
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700251 struct io_sqring_offsets sq_off;
252 struct io_cqring_offsets cq_off;
253};
Christopher Ferris9584fa42019-12-09 15:36:13 -0800254#define IORING_FEAT_SINGLE_MMAP (1U << 0)
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800255#define IORING_FEAT_NODROP (1U << 1)
256#define IORING_FEAT_SUBMIT_STABLE (1U << 2)
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -0700257#define IORING_FEAT_RW_CUR_POS (1U << 3)
258#define IORING_FEAT_CUR_PERSONALITY (1U << 4)
Christopher Ferrisaf09c702020-06-01 20:29:29 -0700259#define IORING_FEAT_FAST_POLL (1U << 5)
Christopher Ferris25c18d42020-10-14 17:42:58 -0700260#define IORING_FEAT_POLL_32BITS (1U << 6)
Christopher Ferris05667cd2021-02-16 16:01:34 -0800261#define IORING_FEAT_SQPOLL_NONFIXED (1U << 7)
262#define IORING_FEAT_EXT_ARG (1U << 8)
Christopher Ferrisa9750ed2021-05-03 14:02:49 -0700263#define IORING_FEAT_NATIVE_WORKERS (1U << 9)
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +0000264#define IORING_FEAT_RSRC_TAGS (1U << 10)
Christopher Ferris1ed55342022-03-22 16:06:25 -0700265#define IORING_FEAT_CQE_SKIP (1U << 11)
Christopher Ferris10a76e62022-06-08 13:31:52 -0700266#define IORING_FEAT_LINKED_FILE (1U << 12)
Christopher Ferris32ff3f82020-12-14 13:10:04 -0800267enum {
268 IORING_REGISTER_BUFFERS = 0,
269 IORING_UNREGISTER_BUFFERS = 1,
270 IORING_REGISTER_FILES = 2,
271 IORING_UNREGISTER_FILES = 3,
272 IORING_REGISTER_EVENTFD = 4,
273 IORING_UNREGISTER_EVENTFD = 5,
274 IORING_REGISTER_FILES_UPDATE = 6,
275 IORING_REGISTER_EVENTFD_ASYNC = 7,
276 IORING_REGISTER_PROBE = 8,
277 IORING_REGISTER_PERSONALITY = 9,
278 IORING_UNREGISTER_PERSONALITY = 10,
279 IORING_REGISTER_RESTRICTIONS = 11,
280 IORING_REGISTER_ENABLE_RINGS = 12,
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +0000281 IORING_REGISTER_FILES2 = 13,
282 IORING_REGISTER_FILES_UPDATE2 = 14,
283 IORING_REGISTER_BUFFERS2 = 15,
284 IORING_REGISTER_BUFFERS_UPDATE = 16,
Christopher Ferris3a39c0b2021-09-02 00:03:38 +0000285 IORING_REGISTER_IOWQ_AFF = 17,
286 IORING_UNREGISTER_IOWQ_AFF = 18,
Christopher Ferris2abfa9e2021-11-01 16:26:06 -0700287 IORING_REGISTER_IOWQ_MAX_WORKERS = 19,
Christopher Ferris10a76e62022-06-08 13:31:52 -0700288 IORING_REGISTER_RING_FDS = 20,
289 IORING_UNREGISTER_RING_FDS = 21,
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700290 IORING_REGISTER_PBUF_RING = 22,
291 IORING_UNREGISTER_PBUF_RING = 23,
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700292 IORING_REGISTER_SYNC_CANCEL = 24,
293 IORING_REGISTER_FILE_ALLOC_RANGE = 25,
Christopher Ferris32ff3f82020-12-14 13:10:04 -0800294 IORING_REGISTER_LAST
295};
Christopher Ferris2abfa9e2021-11-01 16:26:06 -0700296enum {
297 IO_WQ_BOUND,
298 IO_WQ_UNBOUND,
299};
Christopher Ferrisd32ca142020-02-04 16:16:51 -0800300struct io_uring_files_update {
301 __u32 offset;
302 __u32 resv;
303 __aligned_u64 fds;
304};
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700305#define IORING_RSRC_REGISTER_SPARSE (1U << 0)
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +0000306struct io_uring_rsrc_register {
307 __u32 nr;
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700308 __u32 flags;
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +0000309 __u64 resv2;
310 __aligned_u64 data;
311 __aligned_u64 tags;
312};
Christopher Ferrisa9750ed2021-05-03 14:02:49 -0700313struct io_uring_rsrc_update {
314 __u32 offset;
315 __u32 resv;
316 __aligned_u64 data;
317};
Christopher Ferrisfcc3b4f2021-07-01 01:30:21 +0000318struct io_uring_rsrc_update2 {
319 __u32 offset;
320 __u32 resv;
321 __aligned_u64 data;
322 __aligned_u64 tags;
323 __u32 nr;
324 __u32 resv2;
325};
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700326struct io_uring_notification_slot {
327 __u64 tag;
328 __u64 resv[3];
329};
330struct io_uring_notification_register {
331 __u32 nr_slots;
332 __u32 resv;
333 __u64 resv2;
334 __u64 data;
335 __u64 resv3;
336};
Christopher Ferrisa9750ed2021-05-03 14:02:49 -0700337#define IORING_REGISTER_FILES_SKIP (- 2)
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -0700338#define IO_URING_OP_SUPPORTED (1U << 0)
339struct io_uring_probe_op {
340 __u8 op;
341 __u8 resv;
342 __u16 flags;
343 __u32 resv2;
344};
345struct io_uring_probe {
346 __u8 last_op;
347 __u8 ops_len;
348 __u16 resv;
349 __u32 resv2[3];
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700350 struct io_uring_probe_op ops[];
Christopher Ferrisbb9fcb42020-04-06 11:38:04 -0700351};
Christopher Ferris32ff3f82020-12-14 13:10:04 -0800352struct io_uring_restriction {
353 __u16 opcode;
354 union {
355 __u8 register_op;
356 __u8 sqe_op;
357 __u8 sqe_flags;
358 };
359 __u8 resv;
360 __u32 resv2[3];
361};
Christopher Ferris80ae69d2022-08-02 16:32:21 -0700362struct io_uring_buf {
363 __u64 addr;
364 __u32 len;
365 __u16 bid;
366 __u16 resv;
367};
368struct io_uring_buf_ring {
369 union {
370 struct {
371 __u64 resv1;
372 __u32 resv2;
373 __u16 resv3;
374 __u16 tail;
375 };
376 struct io_uring_buf bufs[0];
377 };
378};
379struct io_uring_buf_reg {
380 __u64 ring_addr;
381 __u32 ring_entries;
382 __u16 bgid;
383 __u16 pad;
384 __u64 resv[3];
385};
Christopher Ferris32ff3f82020-12-14 13:10:04 -0800386enum {
387 IORING_RESTRICTION_REGISTER_OP = 0,
388 IORING_RESTRICTION_SQE_OP = 1,
389 IORING_RESTRICTION_SQE_FLAGS_ALLOWED = 2,
390 IORING_RESTRICTION_SQE_FLAGS_REQUIRED = 3,
391 IORING_RESTRICTION_LAST
392};
Christopher Ferris05667cd2021-02-16 16:01:34 -0800393struct io_uring_getevents_arg {
394 __u64 sigmask;
395 __u32 sigmask_sz;
396 __u32 pad;
397 __u64 ts;
398};
Christopher Ferris7447a1c2022-10-04 18:24:44 -0700399struct io_uring_sync_cancel_reg {
400 __u64 addr;
401 __s32 fd;
402 __u32 flags;
403 struct __kernel_timespec timeout;
404 __u64 pad[4];
405};
406struct io_uring_file_index_range {
407 __u32 off;
408 __u32 len;
409 __u64 resv;
410};
411struct io_uring_recvmsg_out {
412 __u32 namelen;
413 __u32 controllen;
414 __u32 payloadlen;
415 __u32 flags;
416};
417#ifdef __cplusplus
418}
419#endif
Christopher Ferris24f97eb2019-05-20 12:58:13 -0700420#endif