authorgravatar for contact@kaij.techKai Jellinghaus <contact@kaij.tech> 2023-09-26 18:51:10+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-09-26 18:16:36-07:00
logd1e39b6914ba0f79fb25c5bba7375964d865a69a
treed25bbfed4cfcfcb0987f925a933aa2871800bc02
parent37398ed2a5242ece4385e0a61a55a79eed21a5c6

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 files changed, 4 insertions(+), 2 deletions(-)

lib/std/os/linux.zig+4-2
...@@ -3750,7 +3750,7 @@ pub const io_sqring_offsets = extern struct {...@@ -3750,7 +3750,7 @@ pub const io_sqring_offsets = extern struct {
3750 array: u32,3750 array: u32,
37513751
3752 resv1: u32,3752 resv1: u32,
3753 resv2: u64,3753 user_addr: u64,
3754};3754};
37553755
3756// io_sqring_offsets.flags3756// io_sqring_offsets.flags
...@@ -3769,7 +3769,9 @@ pub const io_cqring_offsets = extern struct {...@@ -3769,7 +3769,9 @@ pub const io_cqring_offsets = extern struct {
3769 ring_entries: u32,3769 ring_entries: u32,
3770 overflow: u32,3770 overflow: u32,
3771 cqes: u32,3771 cqes: u32,
3772 resv: [2]u64,3772 flags: u32,
3773 resv: u32,
3774 user_addr: u64,
3773};3775};
37743776
3775pub const io_uring_sqe = extern struct {3777pub const io_uring_sqe = extern struct {