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

NAME

6       io_uring_cqe_get_data - get user data for completion event
7

SYNOPSIS

9       #include <liburing.h>
10
11       void *io_uring_cqe_get_data(struct io_uring_cqe *cqe);
12
13       __u64 io_uring_cqe_get_data64(struct io_uring_cqe *cqe);
14

DESCRIPTION

16       The  io_uring_cqe_get_data(3)  function  returns the user_data with the
17       completion queue entry cqe as a data pointer.
18
19       The io_uring_cqe_get_data64(3) function returns the user_data with  the
20       completion queue entry cqe as a 64-bit data value.
21
22       After  the  caller  has  received  a  completion queue entry (CQE) with
23       io_uring_wait_cqe(3), the application can call io_uring_cqe_get_data(3)
24       or io_uring_cqe_get_data64(3) function to retrieve the user_data value.
25       This requires that user_data has been set  earlier  with  the  function
26       io_uring_sqe_set_data(3) or io_uring_sqe_set_data64(3).
27
28

RETURN VALUE

30       If  the  user_data value has been set before submitting the request, it
31       will be returned.  Otherwise the functions returns NULL.
32

SEE ALSO

34       io_uring_get_sqe(3), io_uring_sqe_set_data(3), io_uring_sqe_submit(3)
35
36
37
38liburing-2.1                   November 15, 2021      io_uring_cqe_get_data(3)
Impressum