From: Ammar Faizi <ammarfaizi2@gnuweeb.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: Ammar Faizi <ammarfaizi2@gnuweeb.org>,
Caleb Sander <csander@purestorage.com>,
Muhammad Rizki <kiizuha@gnuweeb.org>,
Kanna Scarlet <knscarlet@gnuweeb.org>,
io-uring Mailing List <io-uring@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Subject: [PATCH liburing v2 4/7] man: Add `io_uring_enter2()` function signature
Date: Tue, 30 Aug 2022 07:56:40 +0700 [thread overview]
Message-ID: <20220830005122.885209-5-ammar.faizi@intel.com> (raw)
In-Reply-To: <20220830005122.885209-1-ammar.faizi@intel.com>
From: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Since kernel 5.11, liburing has io_uring_enter2() wrapper which behaves
just like the io_uring_enter(), but with an extra argument for
`IORING_ENTER_EXT_ARG` case. Add this function signature to the
synopsis part. Also, change the function name in "kernel 5.11" part to
io_uring_enter2().
Suggested-by: Caleb Sander <csander@purestorage.com>
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
---
man/io_uring_enter.2 | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/man/io_uring_enter.2 b/man/io_uring_enter.2
index 05f9f72..85e582c 100644
--- a/man/io_uring_enter.2
+++ b/man/io_uring_enter.2
@@ -13,6 +13,10 @@ io_uring_enter \- initiate and/or complete asynchronous I/O
.BI "int io_uring_enter(unsigned int " fd ", unsigned int " to_submit ,
.BI " unsigned int " min_complete ", unsigned int " flags ,
.BI " sigset_t *" sig );
+.PP
+.BI "int io_uring_enter2(unsigned int " fd ", unsigned int " to_submit ,
+.BI " unsigned int " min_complete ", unsigned int " flags ,
+.BI " sigset_t *" sig ", size_t " sz );
.fi
.PP
.SH DESCRIPTION
@@ -61,9 +65,9 @@ Since kernel 5.11, the system calls arguments have been modified to look like
the following:
.nf
-.BI "int io_uring_enter(unsigned int " fd ", unsigned int " to_submit ,
-.BI " unsigned int " min_complete ", unsigned int " flags ,
-.BI " const void *" arg ", size_t " argsz );
+.BI "int io_uring_enter2(unsigned int " fd ", unsigned int " to_submit ,
+.BI " unsigned int " min_complete ", unsigned int " flags ,
+.BI " const void *" arg ", size_t " argsz );
.fi
which is behaves just like the original definition by default. However, if
--
Ammar Faizi
next prev parent reply other threads:[~2022-08-30 0:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-30 0:56 [PATCH liburing v2 0/7] Export io_uring syscall functions Ammar Faizi
2022-08-30 0:56 ` [PATCH liburing v2 1/7] syscall: Make io_uring syscall arguments consistent Ammar Faizi
2022-08-30 0:56 ` [PATCH liburing v2 2/7] syscall: Add io_uring syscall functions Ammar Faizi
2022-08-30 0:56 ` [PATCH liburing v2 3/7] man: Clarify "man 2" entry for io_uring syscalls Ammar Faizi
2022-08-30 0:56 ` Ammar Faizi [this message]
2022-08-30 0:56 ` [PATCH liburing v2 5/7] man: Alias `io_uring_enter2()` to `io_uring_enter()` Ammar Faizi
2022-08-30 0:56 ` [PATCH liburing v2 6/7] test/io_uring_{enter,setup,register}: Use the exported syscall functions Ammar Faizi
2022-08-30 0:56 ` [PATCH liburing v2 7/7] man/io_uring_enter.2: Fix typo "which is behaves" -> "which behaves" Ammar Faizi
2022-08-30 14:14 ` [PATCH liburing v2 0/7] Export io_uring syscall functions Jens Axboe
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=20220830005122.885209-5-ammar.faizi@intel.com \
--to=ammarfaizi2@gnuweeb.org \
--cc=axboe@kernel.dk \
--cc=csander@purestorage.com \
--cc=gwml@vger.gnuweeb.org \
--cc=io-uring@vger.kernel.org \
--cc=kiizuha@gnuweeb.org \
--cc=knscarlet@gnuweeb.org \
--cc=linux-kernel@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