io_uring_buf_ring_init - Man Page

Initialise a buffer ring

Synopsis

#include <liburing.h>

void io_uring_buf_ring_init(struct io_uring_buf_ring *br);

Description

io_uring_buf_ring_init(3) initialises br so that it is ready to be used. It may be called after io_uring_register_buf_ring(3) but must be called before the buffer ring is used in any other way.

Return Value

None

Notes

Unless manual setup is needed, it's recommended to use io_uring_setup_buf_ring(3) as it provides a simpler way to setup a provided buffer ring.

See Also

io_uring_register_buf_ring(3), io_uring_setup_buf_ring(3), io_uring_buf_ring_add(3) io_uring_buf_ring_advance(3), io_uring_buf_ring_cq_advance(3)

Referenced By

io_uring_prep_read_multishot(3), io_uring_prep_recv(3), io_uring_prep_recvmsg(3), io_uring_prep_send(3), io_uring_prep_sendmsg(3), io_uring_register_buf_ring(3), io_uring_setup_buf_ring(3).

June 13, 2022 liburing-2.2 liburing Manual