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 › register_files_update Public Function register_files_update Doc Source Public Function std.os.linux.IoUring.register_files_update
pub fn register_files_update (self : *IoUring , offset : u32 , fds : []const linux .fd_t ) !void Params File os/linux/IoUring.zig: 1173
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194 pub fn register_files_update (self : *IoUring , offset : u32 , fds : []const linux .fd_t ) !void {
assert (self .fd >= 0 );
const FilesUpdate = extern struct {
offset : u32 ,
resv : u32 ,
fds : u64 align (8 ),
};
var update = FilesUpdate {
.offset = offset ,
.resv = @as (u32 , 0 ),
.fds = @as (u64 , @intFromPtr (fds .ptr )),
};
const res = linux .io_uring_register (
self .fd ,
.REGISTER_FILES_UPDATE ,
@as (*const anyopaque , @ptrCast (&update )),
@as (u32 , @intCast (fds .len )),
);
try handle_registration_result (res );
}
Updates registered file descriptors.
Updates are applied starting at the provided offset in the original file descriptors slice. There are three kind of updates:
register_files.