pub fn unregister_files(self: *IoUring) !void
Unregisters all registered file descriptors previously associated with the ring.
self: *IoUring
1348 1349 1350 1351 1352 1353 1354 1355 1356
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.errno(res)) { .SUCCESS => {}, .NXIO => return error.FilesNotRegistered, else => |errno| return posix.unexpectedErrno(errno), } }
Unregisters all registered file descriptors previously associated with the ring.