Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › os › linux › IoUring › provide_buffers Public Function provide_buffers Doc Source Public Function std.os.linux.IoUring.provide_buffers
pub fn provide_buffers (
self : *IoUring ,
user_data : u64 ,
buffers : [*]u8 ,
buffer_size : usize ,
buffers_count : usize ,
group_id : usize ,
buffer_id : usize ,
) !*linux .io_uring_sqe Params self : *IoUring user_data : u64 buffers : [*]u8 buffer_size : usize buffers_count : usize group_id : usize buffer_id : usize File os/linux/IoUring.zig: 1098
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111 pub fn provide_buffers (
self : *IoUring ,
user_data : u64 ,
buffers : [*]u8 ,
buffer_size : usize ,
buffers_count : usize ,
group_id : usize ,
buffer_id : usize ,
) !*linux .io_uring_sqe {
const sqe = try self .get_sqe ();
sqe .prep_provide_buffers (buffers , buffer_size , buffers_count , group_id , buffer_id );
sqe .user_data = user_data ;
return sqe ;
}
Queues (but does not submit) an SQE to provide a group of buffers used for commands that read/receive data. Returns a pointer to the SQE.
Provided buffers can be used in
read,recvorrecvmsgcommands via .buffer_selection.The kernel expects a contiguous block of memory of size (buffers_count * buffer_size).