Function register_buffers [src]

Registers an array of buffers for use with read_fixed and write_fixed.

Prototype

pub fn register_buffers(self: *IoUring, buffers: []const posix.iovec) !void

Parameters

self: *IoUringbuffers: []const posix.iovec

Source

pub 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); }