From e1d4cf67caedfe20d2e0af9d3b518af1f0777191 Mon Sep 17 00:00:00 2001 From: Nikita Date: Tue, 2 Jul 2024 20:01:41 -0400 Subject: [PATCH] Add two new io_uring flags to linux.zig --- lib/std/os/linux.zig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 1dbcd0e261..3deac7a2f6 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -4777,6 +4777,17 @@ pub const IORING_SETUP_SINGLE_ISSUER = 1 << 12; /// try to do it just before it is needed. pub const IORING_SETUP_DEFER_TASKRUN = 1 << 13; +/// Application provides ring memory +pub const IORING_SETUP_NO_MMAP = 1 << 14; + +/// Register the ring fd in itself for use with +/// IORING_REGISTER_USE_REGISTERED_RING; return a registered fd index rather +/// than an fd. +pub const IORING_SETUP_REGISTERED_FD_ONLY = 1 << 15; + +/// Removes indirection through the SQ index array. +pub const IORING_SETUP_NO_SQARRAY = 1 << 16; + /// IO submission data structure (Submission Queue Entry) pub const io_uring_sqe = @import("linux/io_uring_sqe.zig").io_uring_sqe;