authorgravatar for nikita.nesterov@gmail.comNikita <nikita.nesterov@gmail.com> 2024-07-02 20:01:41-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-03 05:28:55-04:00
loge1d4cf67caedfe20d2e0af9d3b518af1f0777191
tree89bb39dd4922d625020ab5abddb32bb2847b4914
parentcb182432b08d13a343d1db5f4ee06c9c90430779

Add two new io_uring flags to linux.zig


1 files changed, 11 insertions(+), 0 deletions(-)

lib/std/os/linux.zig+11
...@@ -4777,6 +4777,17 @@ pub const IORING_SETUP_SINGLE_ISSUER = 1 << 12;...@@ -4777,6 +4777,17 @@ pub const IORING_SETUP_SINGLE_ISSUER = 1 << 12;
4777/// try to do it just before it is needed.4777/// try to do it just before it is needed.
4778pub const IORING_SETUP_DEFER_TASKRUN = 1 << 13;4778pub const IORING_SETUP_DEFER_TASKRUN = 1 << 13;
47794779
4780/// Application provides ring memory
4781pub const IORING_SETUP_NO_MMAP = 1 << 14;
4782
4783/// Register the ring fd in itself for use with
4784/// IORING_REGISTER_USE_REGISTERED_RING; return a registered fd index rather
4785/// than an fd.
4786pub const IORING_SETUP_REGISTERED_FD_ONLY = 1 << 15;
4787
4788/// Removes indirection through the SQ index array.
4789pub const IORING_SETUP_NO_SQARRAY = 1 << 16;
4790
4780/// IO submission data structure (Submission Queue Entry)4791/// IO submission data structure (Submission Queue Entry)
4781pub const io_uring_sqe = @import("linux/io_uring_sqe.zig").io_uring_sqe;4792pub const io_uring_sqe = @import("linux/io_uring_sqe.zig").io_uring_sqe;
47824793