summaryrefslogtreecommitdiff
path: root/arch/arch-x86-common.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-23 08:04:28 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-23 08:04:28 -0700
commit63ed82548f4489b4c6d5df688f7405b9eb20ddc9 (patch)
treebf8c96b9ee4a8fd482b51954119401c22bfd9307 /arch/arch-x86-common.h
parent2d644205f56953192d27ccbf193c899ae559fcb7 (diff)
downloadfio-63ed82548f4489b4c6d5df688f7405b9eb20ddc9.tar.gz
fio-63ed82548f4489b4c6d5df688f7405b9eb20ddc9.tar.bz2
io_uring: system calls have been renumbered
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/arch-x86-common.h')
-rw-r--r--arch/arch-x86-common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arch-x86-common.h b/arch/arch-x86-common.h
index 5140f238..7c07a61c 100644
--- a/arch/arch-x86-common.h
+++ b/arch/arch-x86-common.h
@@ -3,6 +3,16 @@
#include <string.h>
+#ifndef __NR_sys_io_uring_setup
+#define __NR_sys_io_uring_setup 425
+#endif
+#ifndef __NR_sys_io_uring_enter
+#define __NR_sys_io_uring_enter 426
+#endif
+#ifndef __NR_sys_io_uring_register
+#define __NR_sys_io_uring_register 427
+#endif
+
static inline void cpuid(unsigned int op,
unsigned int *eax, unsigned int *ebx,
unsigned int *ecx, unsigned int *edx)
@@ -13,6 +23,7 @@ static inline void cpuid(unsigned int op,
}
#define ARCH_HAVE_INIT
+#define ARCH_HAVE_IOURING
extern bool tsc_reliable;
extern int arch_random;