io_uring_unregister_ring_fd(3)

io_uring_unregister_ring_fd3

Unregister a ring file descriptor

Usage

#include <liburing.h>

int io_uring_unregister_ring_fd(struct io_uring *ring);

Overview

io_uring_unregister_ring_fd(3) unregisters the file descriptor of the ring.

Unregisters a ring descriptor previously registered with the task. This is done automatically when io_uring_queue_exit(3) is called, but can also be done to free up space for new ring registrations. For more information on ring descriptor registration, see io_uring_register_ring_fd(3)

Return value

Returns 1 on success, indicating that one file descriptor was unregistered, or -errno on error.

Releases

Unchanged in 3 releases since Debian 12 (Bookworm).

  1. 12–Arch

From liburing 2.15-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.