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

NAME

6       io_uring_wait_cqe_timeout - wait for one io_uring completion event with
7       timeout
8

SYNOPSIS

10       #include <liburing.h>
11
12       int io_uring_wait_cqe_timeout(struct io_uring *ring,
13                                     struct io_uring_cqe **cqe_ptr,
14                                     struct __kernel_timespec *ts);
15

DESCRIPTION

17       The io_uring_wait_cqe_timeout(3) function waits for one  IO  completion
18       to be available from the queue belonging to the ring param, waiting for
19       it if necessary or until the timeout ts expires. If an event is already
20       available in the ring when invoked, no waiting will occur.
21
22       The cqe_ptr param is filled in on success.
23
24       If  ts  is specified and an older kernel without IORING_FEAT_EXT_ARG is
25       used, the application does not need to call  io_uring_submit(3)  before
26       calling  io_uring_wait_cqes(3).   For  newer  kernels with that feature
27       flag set, there is no implied submit when waiting for a request.
28
29

RETURN VALUE

31       On success io_uring_wait_cqes(3) returns 0 and  the  cqe_ptr  param  is
32       filled  in.  On  failure it returns -errno.  The return value indicates
33       the result of waiting for a CQE, and it has no relation to the CQE  re‐
34       sult itself.
35

SEE ALSO

37       io_uring_submit(3), io_uring_wait_cqe_timeout(3), io_uring_wait_cqe(3)
38
39
40
41liburing-2.1                   November 15, 2021  io_uring_wait_cqe_timeout(3)
Impressum