1io_uring_buf_ring_cq_advance(3) liburing Manualio_uring_buf_ring_cq_advance(3)
2
3
4

NAME

6       io_uring_buf_ring_cq_advance  - advance index of provided buffer and CQ
7       ring
8

SYNOPSIS

10       #include <liburing.h>
11
12       void io_uring_buf_ring_cq_advance(struct io_uring *ring,
13                                         struct io_uring_buf_ring *br,
14                                         int count);
15

DESCRIPTION

17       The io_uring_buf_ring_cq_advance(3) commits count previously added buf‐
18       fers  to  the  shared buffer ring br, making them visible to the kernel
19       and hence consumable. This passes ownership of the buffer to the  ring.
20       At the same time, it advances the CQ ring of ring by count amount. This
21       effectively bundles both  a  io_uring_buf_ring_advance(3)  call  and  a
22       io_uring_cq_avance(3)  into  one  operation. Since updating either ring
23       index entails a store memory barrier, doing both at once is more  effi‐
24       cient.
25
26

RETURN VALUE

28       None
29

SEE ALSO

31       io_uring_register_buf_ring(3),     io_uring_buf_ring_add(3),     io_ur‐
32       ing_buf_ring_advance(3)
33
34
35
36liburing-2.2                     May 18, 2022  io_uring_buf_ring_cq_advance(3)
Impressum