Skip to content

Commit

Permalink
man/io_uring_prep_close_direct.3: note on IOSQE_FIXED_FILE
Browse files Browse the repository at this point in the history
The application must not set IOSQE_FIXED_FILE for closing a direct
descriptor, the helper will correctly assign the direct descriptor
index to close.

Link: #1325
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Jan 7, 2025
1 parent 584d1b1 commit 76bb80a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion man/io_uring_prep_close.3
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ For a direct descriptor close request, the offset is specified by the
argument instead of the
.IR fd .
This is identical to unregistering the direct descriptor, and is provided as
a convenience.
a convenience. Note that even though it's closing a direct descriptor, the
application must not set
.B IOSQE_FIXED_FILE
on the SQE. Otherwise the request will complete with
.B -EBADF
as the result.

These functions prepare an async
.BR close (2)
Expand Down

0 comments on commit 76bb80a

Please sign in to comment.