authorgravatar for jari.vetoniemi@cloudef.pwJari Vetoniemi <jari.vetoniemi@cloudef.pw> 2025-02-20 14:00:35+09:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-20 12:09:38+01:00
logc41bc20ec7a3dd113d1eb4349d11082c6fc4242a
treec031f8e659a778e0e3e043dbacb9e3eafec19e91
parent541d54a37d7dddefdb09d5f05d38f704c95f3be4

linux: add IORING_RECVSEND_BUNDLE


1 files changed, 5 insertions(+), 0 deletions(-)

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