1io_uring_cq_advance(3)          liburing Manual         io_uring_cq_advance(3)
2
3
4

NAME

6       io_uring_cq_advance  -  mark  one or more io_uring completion events as
7       consumed
8

SYNOPSIS

10       #include <liburing.h>
11
12       void io_uring_cq_advance(struct io_uring *ring,
13                                 unsigned nr);
14

DESCRIPTION

16       The io_uring_cq_advance(3) function marks nr IO  completions  belonging
17       to the ring param as consumed.
18
19       After  the  caller has submitted a request with io_uring_submit(3), the
20       application can  retrieve  the  completion  with  io_uring_wait_cqe(3),
21       io_uring_peek_cqe(3),  or  any  of the other CQE retrieval helpers, and
22       mark it as consumed with io_uring_cqe_seen(3).
23
24       The function io_uring_cqe_seen(3) calls  the  function  io_uring_cq_ad‐
25       vance(3).
26
27       Completions must be marked as seen, so their slot can get reused. Fail‐
28       ure to do so will result in the same completion being returned  on  the
29       next invocation.
30
31

RETURN VALUE

33       None
34

SEE ALSO

36       io_uring_submit(3),  io_uring_wait_cqe(3), io_uring_peek_cqe(3), io_ur‐
37       ing_wait_cqes(3), io_uring_wait_cqe_timeout(3), io_uring_cqe_seen(3)
38
39
40
41liburing-2.1                   January 25, 2022         io_uring_cq_advance(3)
Impressum