io_uring_queue_mmap(3)

io_uring_queue_mmap3

Mmap io_uring ring after setup

Usage

#include <liburing.h>

int io_uring_queue_mmap(int fd, struct io_uring_params *p, struct io_uring *ring);

Overview

The io_uring_queue_mmap(3) function maps the io_uring ring file descriptor fd into memory using the parameters in p. The resulting ring is stored in ring.

This function is a helper for applications that need to customize the ring setup process. Most applications should use io_uring_queue_init(3) or io_uring_queue_init_params(3) instead, which call io_uring_setup(2) and this function automatically.

The fd argument should be a file descriptor returned by io_uring_setup(2), and p should contain the parameters returned by the setup call.

Return value

Returns 0 on success, or a negative errno value on error.

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