Commit d1e39b6914

Kai Jellinghaus <contact@kaij.tech>
2023-09-26 18:51:10
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
1 parent 37398ed
Changed files (1)
lib
std
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 {