From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA1D2ECAAD4 for ; Tue, 30 Aug 2022 00:57:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbiH3A5K (ORCPT ); Mon, 29 Aug 2022 20:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbiH3A5H (ORCPT ); Mon, 29 Aug 2022 20:57:07 -0400 Received: from linux.gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D1AB8D3E3; Mon, 29 Aug 2022 17:57:04 -0700 (PDT) Received: from localhost.localdomain (unknown [68.183.184.174]) by linux.gnuweeb.org (Postfix) with ESMTPSA id 4BB68374EF2; Tue, 30 Aug 2022 00:57:01 +0000 (UTC) From: Ammar Faizi To: Jens Axboe Cc: Ammar Faizi , Caleb Sander , Muhammad Rizki , Kanna Scarlet , io-uring Mailing List , Linux Kernel Mailing List , GNU/Weeb Mailing List Subject: [PATCH liburing v2 4/7] man: Add `io_uring_enter2()` function signature Date: Tue, 30 Aug 2022 07:56:40 +0700 Message-Id: <20220830005122.885209-5-ammar.faizi@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220830005122.885209-1-ammar.faizi@intel.com> References: <20220830005122.885209-1-ammar.faizi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org From: Ammar Faizi 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 Signed-off-by: Ammar Faizi --- 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