aboutsummaryrefslogtreecommitdiff
path: root/core/sys/linux/constants.odin
diff options
context:
space:
mode:
authorLaytan <laytanlaats@hotmail.com>2025-11-10 20:03:57 +0100
committerLaytan <laytanlaats@hotmail.com>2025-11-10 20:03:57 +0100
commit3db76bc367ebe7f5cb67447d90af64ebdd603abb (patch)
treed3b7eb842f77df84a016c4debe8adf56d7acb9b3 /core/sys/linux/constants.odin
parentad9dc4d31b2589cbf680e2b8209012e7e9bddd73 (diff)
sys/linux: add io uring API
Diffstat (limited to 'core/sys/linux/constants.odin')
-rw-r--r--core/sys/linux/constants.odin10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/sys/linux/constants.odin b/core/sys/linux/constants.odin
index ceab17f6d..c80777025 100644
--- a/core/sys/linux/constants.odin
+++ b/core/sys/linux/constants.odin
@@ -395,3 +395,13 @@ MAP_HUGE_16GB :: transmute(Map_Flags)(u32(34) << MAP_HUGE_SHIFT)
/* Get window size */
TIOCGWINSZ :: 0x5413
+
+IORING_TIMEOUT_CLOCK_MASK :: IO_Uring_Timeout_Flags{.BOOTTIME, .REALTIME}
+IORING_TIMEOUT_UPDATE_MASK :: IO_Uring_Timeout_Flags{.UPDATE, .LINK_TIMEOUT_UPDATE}
+
+IORING_OFF_SQ_RING :: 0
+IORING_OFF_CQ_RING :: 0x8000000
+IORING_OFF_SQES :: 0x10000000
+IORING_OFF_PBUF_RING :: 0x80000000
+IORING_OFF_PBUF_SHIFT :: 16
+IORING_OFF_MMAP_MASK :: 0xf8000000