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

NAME

6       io_uring_wait_cqe_nr - wait for one or more io_uring completion events
7

SYNOPSIS

9       #include <liburing.h>
10
11       int io_uring_wait_cqe_nr(struct io_uring *ring,
12                                struct io_uring_cqe **cqe_ptr,
13                                unsigned wait_nr);
14

DESCRIPTION

16       The  io_uring_wait_cqe_nr(3)  function  returns  wait_nr  IO completion
17       events from the queue belonging to the ring param, waiting  for  it  if
18       necessary.  If  the requested number of events are already available in
19       the ring when invoked, no waiting will  occur.  The  cqe_ptr  param  is
20       filled in on success.
21
22       After  the  caller has submitted a request with io_uring_submit(3), the
23       application can retrieve the completion with io_uring_wait_cqe(3).
24
25

RETURN VALUE

27       On success io_uring_wait_cqe_nr(3) returns 0 and the cqe_ptr  param  is
28       filled  in.  On  failure it returns -errno.  The return value indicates
29       the result of waiting for a CQE, and it has no relation to the CQE  re‐
30       sult itself.
31

SEE ALSO

33       io_uring_submit(3), io_uring_wait_cqes(3)
34
35
36
37liburing-2.1                   November 15, 2021       io_uring_wait_cqe_nr(3)
Impressum