From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) by gnuweeb.org (Postfix) with ESMTPS id A12338057F for ; Mon, 29 Aug 2022 19:53:28 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (1024-bit key; unprotected) header.d=purestorage.com header.i=@purestorage.com header.a=rsa-sha256 header.s=google header.b=Zmpu1neb; dkim-atps=neutral Received: by mail-ed1-f42.google.com with SMTP id z41so4108479ede.0 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=q1lTJ2VIK49iW2yzIgtM586z/3y88gUCcbJxtpotmIf7v0RSHH3htvVADQk2QoSwfU aQxbGQOslkjFrT6oBSJ1j+XCXVd6n2UVkG82bwsAWG3X0DnQB5BEkXpZeSwahjShauMF RdUihO/iJi7dDRtkcAOttV2poJVCp6i90c8Dw40TwHX1+3wA9zyLezBfzFfxy2FYIg9q NElPRrW6ZLu8krTV2SfkBSUBXKDNryGA3myYItBT34Q54Txb017kfvVhSNWVmiYSYW6g fMBdA4WvaXvz/q2EtomAOnwrcC0l9kbKqVahqY1QuX9H/aaTsBFjqNuuCtBc2AWk0gE1 QlKw== X-Gm-Message-State: ACgBeo3a07gHqvEmzZagaOpMLgLVpD4pp7SWLSf+xjMRiWwrp4feaI4M VX4xHQ1MZJh3679pAfq+wyLywyFGfD6gWhhmBtjvNQ== X-Google-Smtp-Source: AA6agR4IFnG81zntzVELOxJweXuAGAArzxxUdF1u/q34z6MCI8p1T90p/XlskewwDa5Q5BLxkcQsi40bL0xY7I29X5s= 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" List-Id: 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