Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp362048pxb; Wed, 14 Apr 2021 17:53:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM5l6HxFvgeOAL8D8Wl+ZVBnl8D+Bh1Rq/z85qLcytAEQbyrc+lBx6V3O7IlhNW0nQcpcV X-Received: by 2002:a17:906:4c82:: with SMTP id q2mr806014eju.80.1618447999772; Wed, 14 Apr 2021 17:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618447999; cv=none; d=google.com; s=arc-20160816; b=ShvyorooPI6MIjgx/1E+19gUPIJHx480dwprmELUOhx3Osi2SobTZJGg+yyCWsna3r i6lPTv7gdl9JOcuTqA9mztAB+vLC60Y6+cZ15Joq+vTMNY7yVaLHKr9w0SFaH551ef43 4cKK79O2DG2KiI5mEJNb8TqX3jbIGVzTLC0QM16B5G+ZqpenT2NBH+Aztq1s/UdTwyFm RUcpujI6wW+3ry1azM87+WQ8sFo9pNoGh2vsT0jce6mnSCkp74Hy8aU+Fr8ps7n6PvGZ mLmsoxG1IIU5hDfWDT3AucpI/MOsWdrYfNpTZMOhEHk/drOBKKYfwDl1t45aXT8OH/d2 gS1A== 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=CLbBTpjjt41QwROOmav9UyaOIjiz2GHQ1pdcG8Srixk=; b=sgb2e9ujCX0YMeKUMrIJz16luKPPMoDaTTMCENnQp/qR8Fd/KQaTZOgGjsCiqk9dpQ svbrVAi1V6Cua22GaRvj+5NN9hlQK6bXwSZiVJg8km4gxdd463NH+DgPXKowrutp9cfZ IB7fr4ecxQPnhVp2g1meH113Y93oQ2QiqMHa9MUJajntwKILZNMAskKG6ILRzC5dGQHR dTXMj7KjjAzJ4O01pxZDxtwhDyABH9/mpGs4Vbu0Dp1MRXT4YmXHKEIDmoCC0MpahOFO DrZaJVsnfeMUG2dN7MdBZPETg3bKmZGgu3xyI8hFeslvPQihxvYYY9ie5muSyRCSQWMx Vbdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VeP6Iaaj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z25si838803ejw.647.2021.04.14.17.52.56; Wed, 14 Apr 2021 17:53:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VeP6Iaaj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235118AbhDNXZ1 (ORCPT + 99 others); Wed, 14 Apr 2021 19:25:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233136AbhDNXZZ (ORCPT ); Wed, 14 Apr 2021 19:25:25 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DF45C061574 for ; Wed, 14 Apr 2021 16:25:02 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id l14so22179186ljb.1 for ; Wed, 14 Apr 2021 16:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CLbBTpjjt41QwROOmav9UyaOIjiz2GHQ1pdcG8Srixk=; b=VeP6IaajA77cFYvkuq8w+FxgsvKrtgTzKQkHsIUnbj3C5Jk22V4ZM9+zvZz37SPn5z TiQFCz/zT4vgS9uX4hRXotaSG7MLSStLMHrMXh0f0Rt/DJ38PQ9fpl7jzwvjtQeKgP8V Hx7UrZxMHdpm7+Tdggh/yOwOC1UOULzuqCLXra+jaDoh/GLN/nwdvuMUfuw3FJigXg4r /itKl6AchlHXWQsYtLaHMJxdUXNaT8xXG6nbMCYqVNOhYlcjAagZpB+7XqECkRedTxAs V31chxUfLNJEoewg9EHRlGhb4wWK0RQjRemX1GS5F3dJbU+MIRYMN+PBzRboJiJY0Dsa Ogig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CLbBTpjjt41QwROOmav9UyaOIjiz2GHQ1pdcG8Srixk=; b=H8kFLeGWD/4g7a0lpXMGHdtTPNu56bb5+plPLKvLJbPLaut8ottiB5M5/Bl7RvcZEt yu3zetgopoosvQnE4Fv8FPGEQafh8JGa45lRRb2wZ+bEHU/p6WQsleG3eGf6qfw8oyO3 iKLszdBsnsV2sMewg7UyJYhX251cgDZDaRtjYlRcQnBHmEGPla2rNu5BEpUlB1PMQDfs zEHJHZhe0Rgg9Kp0KY2YM6bx7IRfHRk61L8s3Xl04DbUty8SsaDgKyGctJ7U+hR25p+r GXiJxwigBvNHqGdWwSWawN7+JXb64r8fLXQiVLikjN/S3MGhN2v4eTzJ1WenwONvsdRU nBqQ== X-Gm-Message-State: AOAM5315UzTH5S5rnTxiLAjvzrduM0TteTKW7XNe/i6Atl1qoeXnB6XR onbe1c173QkZvoTl/i6fXt/Qg7Ri1qhofrVtgP5kYQ== X-Received: by 2002:a2e:b817:: with SMTP id u23mr212619ljo.116.1618442697752; Wed, 14 Apr 2021 16:24:57 -0700 (PDT) MIME-Version: 1.0 References: <20210414184604.23473-1-ojeda@kernel.org> <20210414184604.23473-10-ojeda@kernel.org> In-Reply-To: From: Nick Desaulniers Date: Wed, 14 Apr 2021 16:24:45 -0700 Message-ID: Subject: Re: [PATCH 09/13] Samples: Rust examples To: Linus Torvalds Cc: Miguel Ojeda , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Alex Gaynor , Geoffrey Thomas , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 14, 2021 at 12:35 PM Linus Torvalds wrote: > > On Wed, Apr 14, 2021 at 11:47 AM wrote: > > > > From: Miguel Ojeda > > > > A set of Rust modules that showcase how Rust modules look like > > and how to use the abstracted kernel features. > > Honestly, I'd like to see a real example. This is fine for testing, > but I'd like to see something a bit more real, and a bit less special > than the Android "binder" WIP that comes a few patches later. > > Would there be some kind of real driver or something that people could > use as a example of a real piece of code that actually does something > meaningful? Are you suggesting that they "rewrite it in Rust?" :^P *ducks* (sorry, I couldn't help myself) Perhaps it would be a good exercise to demonstrate some of the benefits of using Rust for driver work? -- Thanks, ~Nick Desaulniers