zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c41bc20ec7a3dd113d1eb4349d11082c6fc4242a (tree)
parent 541d54a37d7dddefdb09d5f05d38f704c95f3be4
Author: Jari Vetoniemi <jari.vetoniemi@cloudef.pw>
Date:   Thu, 20 Feb 2025 14:00:35 +0900

linux: add IORING_RECVSEND_BUNDLE

Diffstat:
Mlib/std/os/linux.zig | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig @@ -5839,6 +5839,11 @@ pub const IORING_RECV_MULTISHOT = 1 << 1; pub const IORING_RECVSEND_FIXED_BUF = 1 << 2; /// If set, SEND[MSG]_ZC should report the zerocopy usage in cqe.res for the IORING_CQE_F_NOTIF cqe. pub const IORING_SEND_ZC_REPORT_USAGE = 1 << 3; +/// If set, send or recv will grab as many buffers from the buffer group ID given and send them all. +/// The completion result will be the number of buffers send, with the starting buffer ID in cqe as per usual. +/// The buffers be contigious from the starting buffer ID. +/// Used with IOSQE_BUFFER_SELECT. +pub const IORING_RECVSEND_BUNDLE = 1 << 4; /// CQE.RES FOR IORING_CQE_F_NOTIF if IORING_SEND_ZC_REPORT_USAGE was requested pub const IORING_NOTIF_USAGE_ZC_COPIED = 1 << 31;