logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

io_uring_register_napi - register NAPI busy poll settings

Description

       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.

Name

       io_uring_register_napi - register NAPI busy poll settings

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.

liburing-2.4                                    November 16, 2022                      io_uring_register_napi(3)

Synopsis

#include<liburing.h>intio_uring_register_napi(structio_uring*ring,structio_uring_napi*napi)

See Also