Function register_eventfd_async [src]

Registers the file descriptor for an eventfd that will be notified of completion events on an io_uring instance. Notifications are only posted for events that complete in an async manner. This means that events that complete inline while being submitted do not trigger a notification event. Only a single eventfd can be registered at any given point in time.

Prototype

pub fn register_eventfd_async(self: *IoUring, fd: posix.fd_t) !void

Parameters

self: *IoUringfd: posix.fd_t

Source

pub fn register_eventfd_async(self: *IoUring, fd: posix.fd_t) !void { assert(self.fd >= 0); const res = linux.io_uring_register( self.fd, .REGISTER_EVENTFD_ASYNC, @as(*const anyopaque, @ptrCast(&fd)), 1, ); try handle_registration_result(res); }