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_free_buf_ring - register and free a buffer ring for provided buffers

Description

       The  io_uring_free_buf_ring(3)  function unregisters a previously registered shared buffer ring. The ring
       must have heen previously returned from io_uring_setup_buf_ring(3).

       The ring argument must pointer to the ring for which the provided buffer ring  is  being  registered,  br
       must  point to a buffer ring previously returned by io_uring_setup_buf_ring(3),nentries is the number of
       entries requested in the buffer ring, and bgid is the buffer group ID that br was setup with.

       Under the covers, this function uses io_uring_unregister_buf_ring(3) to unregister the ring, and  handles
       the freeing of the ring rather than letting the application open code it.

       Available since 5.19.

Name

       io_uring_free_buf_ring - register and free a buffer ring for provided buffers

Return Value

       On success io_uring_free_buf_ring(3) returns zero. On failure it returns -errno.

See Also

io_uring_setup_buf_ring(3)

liburing-2.4                                      Mar 07, 2023                         io_uring_free_buf_ring(3)

Synopsis

#include<liburing.h>intio_uring_free_buf_ring(structio_uring*ring,structio_uring_buf_ring*br,unsignedintnentries,intbgid);

See Also