Reinstate io_uring_unregister_eventfd()
When the probe registration was added, this got inadvertently
deleted. Oops...
Fixes: ("Add io_uring_register_probe()")
Fixes:
@@ -99,6 +99,18 @@ int io_uring_register_eventfd(struct io_uring *ring, int event_fd)
return 0;
}
+int io_uring_unregister_eventfd(struct io_uring *ring)
+{
+ int ret;
+
+ ret = __sys_io_uring_register(ring->ring_fd, IORING_UNREGISTER_EVENTFD,
+ NULL, 0);
+ if (ret < 0)
+ return -errno;
+
+ return 0;
+}
+
int io_uring_register_probe(struct io_uring *ring, struct io_uring_probe *p,
unsigned int nr_ops)
{
