pub fn register_buffers(self: *IoUring, buffers: []const posix.iovec) !void 1293
1294
1295
1296
1297
1298
1299
1300
1301
1302pub fn register_buffers(self: *IoUring, buffers: []const posix.iovec) !void {
assert(self.fd >= 0);
const res = linux.io_uring_register(
self.fd,
.REGISTER_BUFFERS,
buffers.ptr,
@as(u32, @intCast(buffers.len)),
);
try handle_registration_result(res);
}
Registers an array of buffers for use with
read_fixedandwrite_fixed.