2 * Will go away once libc support is there
5 #include <sys/syscall.h>
10 #if defined(__x86_64) || defined(__i386__)
11 #ifndef __NR_sys_io_uring_setup
12 #define __NR_sys_io_uring_setup 425
14 #ifndef __NR_sys_io_uring_enter
15 #define __NR_sys_io_uring_enter 426
17 #ifndef __NR_sys_io_uring_register
18 #define __NR_sys_io_uring_register 427
21 #error "Arch not supported yet"
24 int io_uring_register(int fd, unsigned int opcode, void *arg,
27 return syscall(__NR_sys_io_uring_register, fd, opcode, arg, nr_args);
30 int io_uring_setup(unsigned entries, struct io_uring_params *p)
32 return syscall(__NR_sys_io_uring_setup, entries, p);
35 int io_uring_enter(unsigned fd, unsigned to_submit, unsigned min_complete,
36 unsigned flags, sigset_t *sig)
38 return syscall(__NR_sys_io_uring_enter, fd, to_submit, min_complete,
39 flags, sig, _NSIG / 8);