From: Pavel Begunkov <[email protected]>
To: Jens Axboe <[email protected]>, [email protected]
Subject: [PATCH liburing] man/io_uring_enter.2: add notes about direct open/accept
Date: Tue, 31 Aug 2021 20:52:07 +0100 [thread overview]
Message-ID: <e4b7c0f9b585307ac542470c535ef54e419157e0.1630439510.git.asml.silence@gmail.com> (raw)
Add a few lines describing openat/openat2/accept bypassing normal file
tables and installing files right into the fixed file table.
Signed-off-by: Pavel Begunkov <[email protected]>
---
man/io_uring_enter.2 | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/man/io_uring_enter.2 b/man/io_uring_enter.2
index 9ccedef..52a5e13 100644
--- a/man/io_uring_enter.2
+++ b/man/io_uring_enter.2
@@ -511,6 +511,18 @@ field. See also
.BR accept4(2)
for the general description of the related system call. Available since 5.5.
+If the
+.I file_index
+field is set to a non-negative number, the file won't be installed into the
+normal file table as usual but will be placed into the fixed file table at index
+.I file_index - 1.
+In this case, instead of returning a file descriptor, the result will contain
+0 on success or an error. If there is already a file registered at this index,
+the request will fail with
+.B -EBADF.
+
+Available since 5.15.
+
.TP
.B IORING_OP_ASYNC_CANCEL
Attempt to cancel an already issued request.
@@ -634,6 +646,18 @@ is access mode of the file. See also
.BR openat(2)
for the general description of the related system call. Available since 5.6.
+If the
+.I file_index
+field is set to a non-negative number, the file won't be installed into the
+normal file table as usual but will be placed into the fixed file table at index
+.I file_index - 1.
+In this case, instead of returning a file descriptor, the result will contain
+0 on success or an error. If there is already a file registered at this index,
+the request will fail with
+.B -EBADF.
+
+Available since 5.15.
+
.TP
.B IORING_OP_OPENAT2
Issue the equivalent of a
@@ -654,6 +678,18 @@ should be set to the address of the open_how structure. See also
.BR openat2(2)
for the general description of the related system call. Available since 5.6.
+If the
+.I file_index
+field is set to a non-negative number, the file won't be installed into the
+normal file table as usual but will be placed into the fixed file table at index
+.I file_index - 1.
+In this case, instead of returning a file descriptor, the result will contain
+0 on success or an error. If there is already a file registered at this index,
+the request will fail with
+.B -EBADF.
+
+Available since 5.15.
+
.TP
.B IORING_OP_CLOSE
Issue the equivalent of a
--
2.33.0
next reply other threads:[~2021-08-31 19:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-31 19:52 Pavel Begunkov [this message]
2021-08-31 20:04 ` [PATCH liburing] man/io_uring_enter.2: add notes about direct open/accept Jens Axboe
2021-08-31 20:07 ` Pavel Begunkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e4b7c0f9b585307ac542470c535ef54e419157e0.1630439510.git.asml.silence@gmail.com \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox