Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3956491rwb; Mon, 16 Jan 2023 15:54:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXs/b38CZqDLpFGPD3b5+7WE4o0T+9nh9ca01GLGKld3UoV1+AYJCZWBV7OvZ8oGjU4TiUex X-Received: by 2002:a17:90a:1503:b0:226:11c:2c89 with SMTP id l3-20020a17090a150300b00226011c2c89mr1096633pja.24.1673913244520; Mon, 16 Jan 2023 15:54:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673913244; cv=none; d=google.com; s=arc-20160816; b=qqJq+jfhmc+BztBNHypMrZigD8AGALiP95fTkrG/wFmFZAGSPkdLXX0LR7aMUwQIgQ W4fW6yZLaZCe6MlNvyEMhzb+bQpO1zU8W3keH62JElvmOoesWMB7pG7n8K1CeoRJ10Kc Vi6iydNfUpGxB2QGcUbqb1yIJ6BEnm2s2teSeFa/PiBWDrWaOPInTqX8gA8n0Fymr/u2 FrNdc/qKgs6keyEHOHyaEOrqyz1s6OGIodG0KoCXfNv0jbK0Tf/WwwyNCceHeEXrgsjq TOd0lrl3IBRPrgf0H1qTmbluvkIrkP2dW6B5jZ54YU48GjXIipqLiMVtzQNAGAWtxRF1 pFBQ== 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=YsmbTSj7cnmVtuKj0INKYcsE5xY1gj3A58mVttznzT0=; b=wZ7PRow6pxcANVoWYjnhJCKcc3pibSRV71QpyyTXo7p0yzQx2KOhqhAroGLzMAIj42 eQua5Csytr0jIriJPcQsWPrLow1A5WahCr6V5uDwFa5BlcQvXuc322oVhRjpJJBeJroD tfD/RdrVqjdH+ZNNryUgfhzIJKbUqsUzkiMtRDpObjiwrjCZJCCK1vwDdDi+rqiODVCG 8ol0cM8Q4ip1GLE2r/o0jUhj2SL1lvGcQa39gSG4WHWQgU2xBZVDHpO7XtTQO8vZaWP7 VyDTiEeg56ufCWZI9dT7nR5stfybDwvCFKZMoDSphn9iAHe+7Xa4f8G2gDGT/InaR9Mr ES7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BZXqDQhg; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lw8-20020a17090b180800b002299b3cd7acsi1317261pjb.83.2023.01.16.15.53.58; Mon, 16 Jan 2023 15:54:04 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=BZXqDQhg; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235542AbjAPXfq (ORCPT + 49 others); Mon, 16 Jan 2023 18:35:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235452AbjAPXfK (ORCPT ); Mon, 16 Jan 2023 18:35:10 -0500 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 327A512864; Mon, 16 Jan 2023 15:34:38 -0800 (PST) Received: by mail-yb1-xb33.google.com with SMTP id 20so12935365ybl.0; Mon, 16 Jan 2023 15:34:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YsmbTSj7cnmVtuKj0INKYcsE5xY1gj3A58mVttznzT0=; b=BZXqDQhggvwTOV7hswSG4Uf3scC584ZiglEWy0z6MJWmBgSUXnCAOIC95YW16xknXL na/pmmxnhNc/GfLS7XOdqEuxZsZR0m0vAeh9U8ZZVm7LdkkgFFvjFbANU7sgRkoKRHzm VRfPBcolT6bT9T+e/HVqlByh6tNYi5RI6yPVqsQkhqH54ZXvXRFUgW5CrXKV2jJ+jlac T/j8fPYXf+EIg6k7kZ9cwse97PLxlVVUsRfOiUqQZoa48x1tSrhLpPGWziQsLHOiLdU5 ZVAP92UsLgkk6iJfN/UVrOJKIpnji+7Uz5r3/TNybX4tuC621HX29UHnmBIoVTLF2iXL KwNw== 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:subject:date:message-id :reply-to; bh=YsmbTSj7cnmVtuKj0INKYcsE5xY1gj3A58mVttznzT0=; b=sE4w5a/PUOX/N/ZfQcHRl7kRVgbx+cz+v3ZCS3b/QEcOxSg7mKWe3znakoc666PeWM n5cKTVPekEkT1NG8pgSeZDxy1f+werdhbPWfMHBkpMgqa4olWITioBSTQDsNJhlfQnO1 jmMgNW/DCxL941hNGebFlYswYj7OCJYIRceoZy2fTdpe96n9I0UQBMyKSDajtItu6fDm lWWA6XFi/tqyfOYW+bLfTrE32WqDfybyGBM8FurcjMNZdkKMWcucckGYSuT837Sq7XKt ZZENz6D+hnpIavAqBFilsacOL/cDee2MVvNPjZMHPKqfvDeBWiElBoSQhCX9c+J9kKx6 WNUg== X-Gm-Message-State: AFqh2krwgi0rUW4f0hm4kBjRAHerpu2dRnLxO+HE6hnqAs5ROI73Pbqd Y05LS2QFNx/QwBHD0i/1ivG1gZ8OV0cDQvvo+oM= X-Received: by 2002:a25:b7cf:0:b0:712:faac:e6b2 with SMTP id u15-20020a25b7cf000000b00712faace6b2mr179021ybj.632.1673912077446; Mon, 16 Jan 2023 15:34:37 -0800 (PST) MIME-Version: 1.0 References: <20221228060346.352362-1-wedsonaf@gmail.com> In-Reply-To: <20221228060346.352362-1-wedsonaf@gmail.com> From: Miguel Ojeda Date: Tue, 17 Jan 2023 00:34:26 +0100 Message-ID: Subject: Re: [PATCH 1/7] rust: sync: add `Arc` for ref-counted allocations To: Wedson Almeida Filho Cc: rust-for-linux@vger.kernel.org, Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , linux-kernel@vger.kernel.org, Will Deacon , Peter Zijlstra , Mark Rutland 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Wed, Dec 28, 2022 at 7:04 AM Wedson Almeida Filho wrote: > > This is a basic implementation of `Arc` backed by C's `refcount_t`. It > allows Rust code to idiomatically allocate memory that is ref-counted. > > Cc: Will Deacon > Cc: Peter Zijlstra > Cc: Boqun Feng > Cc: Mark Rutland > Signed-off-by: Wedson Almeida Filho Series applied to rust-next, thanks all! Cheers, Miguel