Skip to content

Commit

Permalink
io_uring_prep_fixed_fd_install: move flags
Browse files Browse the repository at this point in the history
Let's put the receive specific flags into sqe->len as it's not used,
and reserve the sqe->install_fd_flags for any potential future opcode
specific flags.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Dec 8, 2023
1 parent f1c4251 commit 8abbdc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/liburing.h
Original file line number Diff line number Diff line change
Expand Up @@ -1205,9 +1205,9 @@ IOURINGINLINE void io_uring_prep_fixed_fd_install(struct io_uring_sqe *sqe,
unsigned int file_flags,
unsigned int flags)
{
io_uring_prep_rw(IORING_OP_FIXED_FD_INSTALL, sqe, fd, NULL, 0, 0);
io_uring_prep_rw(IORING_OP_FIXED_FD_INSTALL, sqe, fd, NULL, file_flags, 0);
sqe->flags = IOSQE_FIXED_FILE;
sqe->install_fd_flags = file_flags;
sqe->install_fd_flags = flags;
}

/*
Expand Down

0 comments on commit 8abbdc5

Please sign in to comment.