Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3506872rwe; Mon, 29 Aug 2022 13:15:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR4cja0JBVV//xT0WHkyKY7HcHj/tTmv6pr8+u2ovpRIfPuhiSuhCWnJUZ5pB2WCE4bGOUt3 X-Received: by 2002:a17:907:2173:b0:73d:c95d:1179 with SMTP id rl19-20020a170907217300b0073dc95d1179mr14462412ejb.89.1661804159369; Mon, 29 Aug 2022 13:15:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661804159; cv=none; d=google.com; s=arc-20160816; b=EKK+10+sWdL6yNrRD9jESCKed4B/zj7aERXasEnva4i/IWjxDpa2Urz+nMT0H8R+r/ YfNq3oQ939UK7RAqbOrVHzcEsyGyk7RXooW10dAgGf6X409Q6nKcaKo8GUXQQ6rtomGi 3Tx57pVyT+JLQu1Hswr/6VEAUZEM/tD5RRqzS1LxU4C2E2Nl6FY1JuIpdWau8HkEWkOu M1OuiQM1ONKtLcKvlSkv/oQk0iy/uNlUIlSTaPRWpFxOpXJY+RbYJ1esDzXiQrMcHRAR mpom/AeF5GqDwCHp39BXuV+qllVz6ZHoFD+pfy7fTd9PejXzz2GqgF9AG9swSaqe9sG3 IgcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=wGECd8qA2RkmX9DUfs/SFtBdSKgbGgulG6ur/Hs/iUk=; b=0FkuHkg5lLXSNQNCEYLtUOd0uplggS54dFLbwtvqPKKwqoyFllB5/NXGMw2SAeKUEl 83155ha5iGXUoFgRMdIsb9MoWC0K2BeF0MEAx5/RmGQdZgi8SiYvJ+LqCufOGBE4JLIW CRFIdWclvO0nVOmG2fJH/3nVmE9BVHJHyo8Cr2M+G4W9MTWdlULJM3xImx9kLLJkNiTD TCHRD12zOg+dD1WxJb80NA/wgfuA605LM07S/f19WN/NzCW+M8TecCYscRNB9KtyhZYI 1N7Jas9tQo9T+uROfygwceNxDdBzYJpbR9/Wd+/FMVAEcn457ZQp1xcq4PNJR0RRDQCU 3WFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@purestorage.com header.s=google header.b=Zmpu1neb; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=purestorage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h16-20020a05640250d000b00447c97a309csi8818005edb.169.2022.08.29.13.15.33; Mon, 29 Aug 2022 13:15:59 -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; dkim=pass header.i=@purestorage.com header.s=google header.b=Zmpu1neb; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=purestorage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229570AbiH2Txc (ORCPT + 99 others); Mon, 29 Aug 2022 15:53:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbiH2Txa (ORCPT ); Mon, 29 Aug 2022 15:53:30 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 913737FE56 for ; Mon, 29 Aug 2022 12:53:28 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id m1so11521006edb.7 for ; Mon, 29 Aug 2022 12:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=wGECd8qA2RkmX9DUfs/SFtBdSKgbGgulG6ur/Hs/iUk=; b=Zmpu1nebw8q0dcKAYgbYOGB98Ujq44adRJiI6eia3u4qwyHqZ+caQlJeRFEwp3dZ7S yQEzNM541f62JJcVPwwEVUNnf/U7RSR+NcKSKLCMmk9T2UHXjfXucJXdQUoOHbca1QGK DRZ78+wJvCMsu2pK8fBky4HLC7BT2NMb1eh6Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=wGECd8qA2RkmX9DUfs/SFtBdSKgbGgulG6ur/Hs/iUk=; b=EYfWYlUpK1S32cXHDUwtVXm6y0n5IWG8acLQB1ynEuFfaJtdDAJQ4Ia4G+qaNaYsmX DASr5oxhUwJ6TCVExnCo3mSfwo05QPkuiIYsPqOdndetHB9XEi7PpdRfwzLzTIznPu2K 5QxdQWIQ0OfiBKGZHPgvmn8Ek3rqUcgSxaLfWJJBFZ//pr6NgMQmXdnFEd0rdEb5FrzM 0NSix5KzheSsEQYFgHVTiX+OIqkDe6PzK8VDIzxPLMFI5ke9TX+pyHYSn3ajPQGEOj7i aB4eSx2LAXjV9WTXHzUysgorXFpVino0OanHrs+0cTfTg5urClvuPCtyqKgdS0kOS8H4 DadA== X-Gm-Message-State: ACgBeo3TUGdMZMjFwINFLxJWc3Zl8D8UBHO0GWTG07274IHdKDQBjElP KQKI2J1LC4+fb081RS1GTWYwXcE0Emd7yt8vjcL0sa3ZfF2v3g== X-Received: by 2002:a05:6402:2b91:b0:445:dfdb:778b with SMTP id fj17-20020a0564022b9100b00445dfdb778bmr18125839edb.367.1661802807026; Mon, 29 Aug 2022 12:53:27 -0700 (PDT) MIME-Version: 1.0 References: <20220829030521.3373516-1-ammar.faizi@intel.com> <20220829030521.3373516-2-ammar.faizi@intel.com> In-Reply-To: <20220829030521.3373516-2-ammar.faizi@intel.com> From: Caleb Sander Date: Mon, 29 Aug 2022 12:53:16 -0700 Message-ID: Subject: Re: [RFC PATCH liburing v1 1/4] syscall: Add io_uring syscall functions To: Ammar Faizi Cc: Jens Axboe , Muhammad Rizki , Kanna Scarlet , io-uring Mailing List , Linux Kernel Mailing List , "GNU/Weeb Mailing List" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Sun, Aug 28, 2022 at 8:07 PM Ammar Faizi wrote: > > --- a/src/include/liburing.h > +++ b/src/include/liburing.h > @@ -202,6 +202,14 @@ int io_uring_register_file_alloc_range(struct io_uring *ring, > int io_uring_register_notifications(struct io_uring *ring, unsigned nr, > struct io_uring_notification_slot *slots); > int io_uring_unregister_notifications(struct io_uring *ring); > +int io_uring_enter(unsigned int fd, unsigned int to_submit, > + unsigned int min_complete, unsigned int flags, > + sigset_t *sig); > +int io_uring_enter2(int fd, unsigned to_submit, unsigned min_complete, > + unsigned flags, sigset_t *sig, int sz); Also, from the io_uring_enter() man page, it appears that "void *" would be a more appropriate type for the pointer argument in io_uring_enter2(). And "size_t" for sz. --Caleb