1io_uring_wait_cqe(3) liburing Manual io_uring_wait_cqe(3)
2
3
4
6 io_uring_wait_cqe - wait for one io_uring completion event
7
9 #include <liburing.h>
10
11 int io_uring_wait_cqe(struct io_uring *ring,
12 struct io_uring_cqe **cqe_ptr);
13
15 The io_uring_wait_cqe(3) function waits for an IO completion from the
16 queue belonging to the ring param, waiting for it if necessary. If an
17 event is already available in the ring when invoked, no waiting will
18 occur. The cqe_ptr param is filled in on success.
19
20 After the caller has submitted a request with io_uring_submit(3), the
21 application can retrieve the completion with io_uring_wait_cqe(3).
22
23
25 On success io_uring_wait_cqe(3) returns 0 and the cqe_ptr param is
26 filled in. On failure it returns -errno. The return value indicates
27 the result of waiting for a CQE, and it has no relation to the CQE re‐
28 sult itself.
29
31 io_uring_submit(3), io_uring_wait_cqe_timeout(3), io_uring_wait_cqes(3)
32
33
34
35liburing-2.1 November 15, 2021 io_uring_wait_cqe(3)