Skip to content

Commit 1fc2ac4

Browse files
calebsanderaxboe
authored andcommitted
io_uring: fix user_data field name in comment
io_uring_cqe's user_data field refers to `sqe->data`, but io_uring_sqe does not have a data field. Fix the comment to say `sqe->user_data`. Signed-off-by: Caleb Sander Mateos <[email protected]> Link: axboe/liburing#1206 Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent e4956dc commit 1fc2ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/io_uring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ enum io_uring_msg_ring_flags {
421421
* IO completion data structure (Completion Queue Entry)
422422
*/
423423
struct io_uring_cqe {
424-
__u64 user_data; /* sqe->data submission passed back */
424+
__u64 user_data; /* sqe->user_data value passed back */
425425
__s32 res; /* result code for this event */
426426
__u32 flags;
427427

0 commit comments

Comments
 (0)