Function unregister_files [src]
Unregisters all registered file descriptors previously associated with the ring.
Prototype
pub fn unregister_files(self: *IoUring) !void Parameters
self: *IoUring Source
pub fn unregister_files(self: *IoUring) !void {
assert(self.fd >= 0);
const res = linux.io_uring_register(self.fd, .UNREGISTER_FILES, null, 0);
switch (linux.E.init(res)) {
.SUCCESS => {},
.NXIO => return error.FilesNotRegistered,
else => |errno| return posix.unexpectedErrno(errno),
}
}