aboutsummaryrefslogtreecommitdiff
path: root/man/io_uring_cqe_get_data.3
diff options
context:
space:
mode:
Diffstat (limited to 'man/io_uring_cqe_get_data.3')
-rw-r--r--man/io_uring_cqe_get_data.321
1 files changed, 17 insertions, 4 deletions
diff --git a/man/io_uring_cqe_get_data.3 b/man/io_uring_cqe_get_data.3
index 9112ee3..4cbb32c 100644
--- a/man/io_uring_cqe_get_data.3
+++ b/man/io_uring_cqe_get_data.3
@@ -10,30 +10,43 @@ io_uring_cqe_get_data \- get user data for completion event
.B #include <liburing.h>
.PP
.BI "void *io_uring_cqe_get_data(struct io_uring_cqe *" cqe ");"
+.BI "
+.BI "__u64 io_uring_cqe_get_data64(struct io_uring_cqe *" cqe ");"
.fi
.SH DESCRIPTION
.PP
The
.BR io_uring_cqe_get_data (3)
function returns the user_data with the completion queue entry
-.IR cqe .
+.IR cqe
+as a data pointer.
+
+The
+.BR io_uring_cqe_get_data64 (3)
+function returns the user_data with the completion queue entry
+.IR cqe
+as a 64-bit data value.
After the caller has received a completion queue entry (CQE) with
.BR io_uring_wait_cqe (3),
the application can call
.BR io_uring_cqe_get_data (3)
+or
+.BR io_uring_cqe_get_data64 (3)
function to retrieve the
.I user_data
value. This requires that
.I user_data
has been set earlier with the function
-.BR io_uring_sqe_set_data (3).
+.BR io_uring_sqe_set_data (3)
+or
+.BR io_uring_sqe_set_data64 (3).
.SH RETURN VALUE
If the
.I user_data
-value has been set before submitting the request, it will be returned. Otherwise
-the functions returns NULL.
+value has been set before submitting the request, it will be returned.
+Otherwise the functions returns NULL.
.SH SEE ALSO
.BR io_uring_get_sqe (3),
.BR io_uring_sqe_set_data (3),