Skip to content

Commit c41bc20

Browse files
Cloudefalexrp
authored andcommitted
linux: add IORING_RECVSEND_BUNDLE
1 parent 541d54a commit c41bc20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/std/os/linux.zig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5839,6 +5839,11 @@ pub const IORING_RECV_MULTISHOT = 1 << 1;
58395839
pub 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.
58415841
pub 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.
5846+
pub const IORING_RECVSEND_BUNDLE = 1 << 4;
58425847
/// CQE.RES FOR IORING_CQE_F_NOTIF if IORING_SEND_ZC_REPORT_USAGE was requested
58435848
pub const IORING_NOTIF_USAGE_ZC_COPIED = 1 << 31;
58445849

0 commit comments

Comments
 (0)