From d1e39b6914ba0f79fb25c5bba7375964d865a69a Mon Sep 17 00:00:00 2001 From: Kai Jellinghaus Date: Tue, 26 Sep 2023 18:51:10 +0200 Subject: [PATCH] Add new fields to io_sqring_offsets & io_cqring_offsets `user_addr`s were introduced in `03d89a2` ([github link](https://github.com/torvalds/linux/commit/03d89a2de25bbc5c77e61a0cf77663978c4b6ea7) which was shipped in v6.5 `flags` was introduced even earlier --- lib/std/os/linux.zig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 9d3dcac559..4a59446a8d 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -3750,7 +3750,7 @@ pub const io_sqring_offsets = extern struct { array: u32, resv1: u32, - resv2: u64, + user_addr: u64, }; // io_sqring_offsets.flags @@ -3769,7 +3769,9 @@ pub const io_cqring_offsets = extern struct { ring_entries: u32, overflow: u32, cqes: u32, - resv: [2]u64, + flags: u32, + resv: u32, + user_addr: u64, }; pub const io_uring_sqe = extern struct {