| ... | @@ -6,6 +6,8 @@ | ... | @@ -6,6 +6,8 @@ |
| 6 | const std = @import("../../std.zig"); | 6 | const std = @import("../../std.zig"); |
| 7 | const assert = std.debug.assert; | 7 | const assert = std.debug.assert; |
| 8 | const builtin = std.builtin; | 8 | const builtin = std.builtin; |
| | 9 | const mem = std.mem; |
| | 10 | const net = std.net; |
| 9 | const os = std.os; | 11 | const os = std.os; |
| 10 | const linux = os.linux; | 12 | const linux = os.linux; |
| 11 | const testing = std.testing; | 13 | const testing = std.testing; |
| ... | @@ -19,6 +21,7 @@ pub const IO_Uring = struct { | ... | @@ -19,6 +21,7 @@ pub const IO_Uring = struct { |
| 19 | sq: SubmissionQueue, | 21 | sq: SubmissionQueue, |
| 20 | cq: CompletionQueue, | 22 | cq: CompletionQueue, |
| 21 | flags: u32, | 23 | flags: u32, |
| | 24 | features: u32, |
| 22 | | 25 | |
| 23 | /// A friendly way to setup an io_uring, with default io_uring_params. | 26 | /// A friendly way to setup an io_uring, with default io_uring_params. |
| 24 | /// `entries` must be a power of two between 1 and 4096, although the kernel will make the final | 27 | /// `entries` must be a power of two between 1 and 4096, although the kernel will make the final |
| ... | @@ -126,7 +129,8 @@ pub const IO_Uring = struct { | ... | @@ -126,7 +129,8 @@ pub const IO_Uring = struct { |
| 126 | .fd = fd, | 129 | .fd = fd, |
| 127 | .sq = sq, | 130 | .sq = sq, |
| 128 | .cq = cq, | 131 | .cq = cq, |
| 129 | .flags = p.flags | 132 | .flags = p.flags, |
| | 133 | .features = p.features |
| 130 | }; | 134 | }; |
| 131 | } | 135 | } |
| 132 | | 136 | |