commit e1d4cf67caedfe20d2e0af9d3b518af1f0777191 (tree) parent cb182432b08d13a343d1db5f4ee06c9c90430779 Author: Nikita <nikita.nesterov@gmail.com> Date: Tue, 2 Jul 2024 20:01:41 -0400 Add two new io_uring flags to linux.zig Diffstat:
| M | lib/std/os/linux.zig | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git 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;