Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp743213rwl; Fri, 31 Mar 2023 01:31:54 -0700 (PDT) X-Google-Smtp-Source: AKy350aDorhyO0Lkd+g49YhH2Ta5vwA2ar0AgbaShjKhlBhlcc2SgwH03LjZlwwZaqHDOxfsg7fL X-Received: by 2002:a05:6a20:8e07:b0:cd:2c0a:6ec0 with SMTP id y7-20020a056a208e0700b000cd2c0a6ec0mr6620436pzj.3.1680251514135; Fri, 31 Mar 2023 01:31:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680251514; cv=none; d=google.com; s=arc-20160816; b=ZhZln4rDteFgJXiBpWAhuzYd2hI1JZH8FxNt5mlkScmwuNODMj/+2DZGuBLvKDeqiI o/EDM+n3jggjZQKTIVXRFHgsxmswrcy7/X7TXM1o5tmZ/D7crkiuf75+FJyCKiFmEeN2 iL/X4ahC/+a7ipGO+PLJOJoFjsa8z0+g+uWelmUR/Uk28Ia9A0d89KFffEqCo21JuysH 6iv8qTetuGQi5hHLQXcPQgYPl0WJSFA+XE89xjfE//6IolshFwCIULVjfEZGXODsVuk3 VBRWrXccIHkFY16dc19aElhg0g8/IW45tL80ZQ7D8SfJL3yOMU0zAyCguLWjAfHm46BS d/8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=uMJy1C9/3QR5jjuw5Xv2+S7pMfTZMnWAxKSE4c5qidM=; b=YMOK9nV8vYPvJ/sHlCAEk/KZQbtwke2hH8a1BpE/rQ1j02N0rO7ofkkdXPxTTywTq8 sIgJQVc2qxEV4X4hbCJ3QX8IwxBU6+Rb4HVpqgObjLKJ8cMSZBzTtl8FZYx+ngF3asab swc8kaUX2xLl0EvoK7k9hJIDneMEE3EqBu4FVYE65OOzNRLIKxMJOiHpO2lNoldq/Vob j3kaOowIuWOj+KkW8G4hU9TaV3R2h0kP2EWSy2bCvzu6YZM0A4MIV/LZf4c3il/MQdId fYEnDiC8yWdYCvPIZZQAnx5OxPyr9+l6QymzEhSH067zD9wtZL0w3SOTwV0OPGayIiaJ eb8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@metaspace-dk.20210112.gappssmtp.com header.s=20210112 header.b=fmzfl9IO; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 129-20020a630187000000b0050fa328e128si1892631pgb.419.2023.03.31.01.31.42; Fri, 31 Mar 2023 01:31:54 -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=@metaspace-dk.20210112.gappssmtp.com header.s=20210112 header.b=fmzfl9IO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231550AbjCaISn (ORCPT + 99 others); Fri, 31 Mar 2023 04:18:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231548AbjCaISk (ORCPT ); Fri, 31 Mar 2023 04:18:40 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3FDB46F for ; Fri, 31 Mar 2023 01:18:38 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id i5so86738481eda.0 for ; Fri, 31 Mar 2023 01:18:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=metaspace-dk.20210112.gappssmtp.com; s=20210112; t=1680250717; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=uMJy1C9/3QR5jjuw5Xv2+S7pMfTZMnWAxKSE4c5qidM=; b=fmzfl9IOs735tXSv5WRpDWImpl7qScBJ0TpByEkzL0uKL4RNFRy8fFPjWqyMz5M76F zlBJtzL56YDZmviRE03XGtIWzaq/Z5rnScnRHJi4Qf8YeWnlRV52yVtAGlxWwGzBnGV/ 3x06jpXMum2HJ7t4VmxOiJYCAte4E3jW9sPhA9FjXT2zUJbx3TdzfCKY23+b4HDb5fxA jLyy9mQd04BST5ySdlp+y4TF0gG+wy36ROKjnHL7FJ5FEEzjxEwid5sWV4SdY7iv7oMW rXHUoo2PfyxJE+hbktrKRbWfZ4hne/HlDFy8GGPTc0QVxS4CsKAUokZEVsnoFVcYBSPu 4kGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680250717; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uMJy1C9/3QR5jjuw5Xv2+S7pMfTZMnWAxKSE4c5qidM=; b=jBVDKiqriEidKTu7uKJPsEntzvl6M1ILcofOf0lDNuUNsxYoqQBaDnagdobrAmvXsW FtaxCymZezZnKt5axp8k/G9RteATvaHiOeCW6PLWpxHjD8+DGp1jojJhMzhmOZIJ4wyu Y6mbXbGBUagHwiz2TtARk6EzkKCUW7YBumfU2O5AV76YKk6z2iQUF4bv2eTyyTOfCLB8 Ipyc5+QmpY06nm5WvpViG4JV3I3X0xHIHziQg9u9W/JAak+qRSBF74O7nembdLVPvqX7 SFeWeShbOj0DRiVLt7Pw3atm9lLvX9V/hxOd2NMZXDrkxe4Ps5IiQSz4DncOFRzYJjhL Y3Qg== X-Gm-Message-State: AAQBX9d/YlsIYwkFwI8GzFxfgIpfA/jy1UBL69zgJR1Lr6rxxak6ilRm 8SMDnoCg0CFhhUj/N2DPnmcwqg== X-Received: by 2002:a17:906:5a94:b0:933:15c0:6e05 with SMTP id l20-20020a1709065a9400b0093315c06e05mr25588433ejq.7.1680250717477; Fri, 31 Mar 2023 01:18:37 -0700 (PDT) Received: from localhost ([194.62.217.4]) by smtp.gmail.com with ESMTPSA id h13-20020a1709066d8d00b009475bd8f441sm719038ejt.60.2023.03.31.01.18.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 01:18:36 -0700 (PDT) References: <20230329223239.138757-1-y86-dev@protonmail.com> <20230329223239.138757-5-y86-dev@protonmail.com> <87h6u24bip.fsf@metaspace.dk> <6c3985d3-6b81-df0e-5c22-12a0d8044119@protonmail.com> User-agent: mu4e 1.9.18; emacs 28.2.50 From: Andreas Hindborg To: Benno Lossin Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn?= Roy Baron , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v3 04/13] rust: add pin-init API core Date: Fri, 31 Mar 2023 10:16:56 +0200 In-reply-to: <6c3985d3-6b81-df0e-5c22-12a0d8044119@protonmail.com> Message-ID: <871ql549lv.fsf@metaspace.dk> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 Benno Lossin writes: > On 30.03.23 15:05, Andreas Hindborg wrote: >>> +//! [`Arc`]: crate::sync::Arc >>> +//! [`impl PinInit`]: PinInit >>> +//! [`impl PinInit`]: PinInit >>> +//! [`impl Init`]: Init >>> +//! [`Opaque`]: kernel::types::Opaque >>> +//! [`pin_data`]: ::macros::pin_data >>> +//! [`UniqueArc`]: kernel::sync::UniqueArc >>> +//! [`Box`]: alloc::boxed::Box >>> + >>> +use core::{convert::Infallible, marker::PhantomData, mem::MaybeUninit}; >>> + >>> +/// A pinned initializer for `T`. >> >> "An initializer for a pinned `T`" instead? > > To me this does not really make sense, since the type `T` cannot be > pinned, only an instance can be. But maybe I should use the term > `pin-initializer` instead. I see. Could be "An initializer for a pinned instance of `T`" then. Just to clarify that the initializer itself is not the thing that is pinned.