io-uring.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Begunkov <asml.silence@gmail.com>
To: Jens Axboe <axboe@kernel.dk>, io-uring@vger.kernel.org
Subject: Re: [PATCH liburing] man/io_uring_enter.2: add notes about direct open/accept
Date: Tue, 31 Aug 2021 21:07:41 +0100	[thread overview]
Message-ID: <ded8e138-2870-a69d-9dd7-f13f15a24e54@gmail.com> (raw)
In-Reply-To: <8f82a074-1597-1796-2e26-da3abe722806@kernel.dk>

On 8/31/21 9:04 PM, Jens Axboe wrote:
> On 8/31/21 1:52 PM, Pavel Begunkov wrote:
>> 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 <asml.silence@gmail.com>
>> ---
>>  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,
> 
> I don't think non-negative is correct, it has to be set to a positive
> number. non-negative would include 0, which isn't correct.

Oh, right, should have been non-zero

> Should also include a note on if these types of file are used, they
> won't work in anything but io_uring. That's obvious to us, but should be
> noted that they then only live within the realm of the ring itself, not
> the system as a whole.

Will send a v2


-- 
Pavel Begunkov

      reply	other threads:[~2021-08-31 20:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-31 19:52 [PATCH liburing] man/io_uring_enter.2: add notes about direct open/accept Pavel Begunkov
2021-08-31 20:04 ` Jens Axboe
2021-08-31 20:07   ` Pavel Begunkov [this message]

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=ded8e138-2870-a69d-9dd7-f13f15a24e54@gmail.com \
    --to=asml.silence@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=io-uring@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).