Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3716911rwe; Mon, 29 Aug 2022 18:43:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR6PFSJwluPEnSmiW39p682QpfX5e1vekOJE3dvt6lqGYVUjH+BIN5RpWwOUQdv7Uce/OyrK X-Received: by 2002:a17:906:9bc6:b0:73f:b594:e314 with SMTP id de6-20020a1709069bc600b0073fb594e314mr11704167ejc.557.1661823812950; Mon, 29 Aug 2022 18:43:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661823812; cv=none; d=google.com; s=arc-20160816; b=K78/BY/egsBRDEBCJolEboXK8iz+bYfrVyZoSUmZiRLOkw0Hfsk07c0iizVd6iNMlX tZHXsArb2+/k0acbzyh1zboaSxewh49prthLSfPu3XJMouG4HMM4dKai12eA6QoSQih6 yUgQkU/YST5A6RsqEUag9FCnnN588B2oYOohGFgBMj46VZ3S8zDUCrVQTUSvknNcCh71 KDAAeNMRK5xDTQBI+xaZ3LyUgdr6FSgfKxDt2K6azy7bd37myiGLwGEAHPvcqdhvWxG7 ZS1jsiAcwHtDkaC2CjkV0l4BK9WpBKgdolRfKfoJx+vZL6N6OVqXvUmCccMFoSKqvRjl v1cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=lM3QDdN1TPWaOaEv/diEOx68Tnpdv2dsbgkbBcHO+Z0=; b=fhHBIeH3fS579MpbPOuEM+3VkAjSFBD9AkH8STyPHd956lgC6grKK2zgoelQ12cr4m 5H+9/Q53LN5Vxqj9XpzW52v4xjbUPeaTvyFtAhPD/lPtNfyZdtwzpUaGLvA54W5340ts ivymoQ/xa0s4M1fAVYOxXV6jAQd4rBDExKiw80rTOa7VziXz65yCDrxZORrPsGs7DIYZ Bxdf53JZnyRDq/DHfV13NcV4xFupgEzhLsRGYLXVr+DOBxaFpOh/0gCYSMEsVrUsLVjy Xy6CZGmhCFy0sspLbyP83uJ5bS788SFXBE2N9LXQXeN30ngNbAoDpXOIb0kKBi5sONrw j+cg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gnuweeb.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h20-20020a056402281400b00447bac04bdcsi8682256ede.42.2022.08.29.18.43.08; Mon, 29 Aug 2022 18:43:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gnuweeb.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229651AbiH3A5Q (ORCPT + 99 others); Mon, 29 Aug 2022 20:57:16 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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