io_uring_register_napi(3)

io_uring_register_napi3

Register napi busy poll settings

Usage

#include <liburing.h>

int io_uring_register_napi(struct io_uring *ring, struct io_uring_napi *napi)

Overview

The io_uring_register_napi(3) function registers the NAPI settings for subsequent operations. The NAPI settings are specified in the structure that is passed in the napi parameter. The structure consists of the napi timeout busy_poll_to (napi busy poll timeout in us) and prefer_busy_poll.

Registering a NAPI settings sets the mode when calling the function napi_busy_loop and corresponds to the SO_PREFER_BUSY_POLL socket option.

NAPI busy poll can reduce the network roundtrip time.

Return value

On success io_uring_register_napi(3) return 0. On failure they return -errno. It also updates the napi structure with the current values.

Releases

Unchanged in 2 releases since Debian 13 (Trixie).

  1. 13–Arch

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