SPDX-License-Identifier: LGPL-2.0-or-later
#include <liburing.h>"int io_uring_register_eventfd(struct io_uring *" ring "," " int " fd ");"
"int io_uring_register_eventfd_async(struct io_uring *" ring "," " int " fd ");"
"int io_uring_unregister_eventfd(struct io_uring *" ring ");"
io_uring_register_eventfd (3) registers the eventfd file descriptor fd with the ring identified by ring . Whenever completions are posted to the CQ ring, an eventfd notification is generated with the registered eventfd descriptor. If io_uring_register_eventfd_async (3) is used, only events that completed out-of-line will trigger a notification. It notifications are no longer desired, io_uring_unregister_eventfd (3) may be called to remove the eventfd registration. No eventfd argument is needed, as a ring can only have a single eventfd registered.