From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1C90C678D5 for ; Fri, 24 Feb 2023 14:45:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230138AbjBXOpZ (ORCPT ); Fri, 24 Feb 2023 09:45:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbjBXOpI (ORCPT ); Fri, 24 Feb 2023 09:45:08 -0500 Received: from mail.marcansoft.com (marcansoft.com [212.63.210.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00C8A18A9B; Fri, 24 Feb 2023 06:45:07 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: lina@asahilina.net) by mail.marcansoft.com (Postfix) with ESMTPSA id A40AC3FA55; Fri, 24 Feb 2023 14:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=asahilina.net; s=default; t=1677249906; bh=S1h+B0qxGOxw6VVX44ZvWypG2zHrxFFK2zOWdFGJ3lE=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=t0xd4A5jkegy1YFQ6YxnouRPhGKnWfoka0evEox2WtHsnqgOWh9c4oWlquthowt+H sMHdWcaI8MzvHbTl1obv1nzaSinyfCbhhjnBDhP22p70Wd+qja336nYo9oSy1tfZKB oQEJcAerFPUnf2Qey2+VA8mJt2Kzq0DarRQLVc07zbkrXlfGzwhyDAHXe/cZ/qAuxq PnbE+LrQ3FWjNqqtpnmesa4RKHJKUM5COKVVLXyKuBc8uWbN/PeJJVsmLQyWXDtX1r KfT/nZdpLoK9rkIcCt6worIzQ/e7vjmquZ0CQ07HmMvSzcr4qqlXik+B0h7/lHhRBp Z+FpQ0t4RSWcg== Message-ID: Date: Fri, 24 Feb 2023 23:44:59 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: [PATCH 2/5] rust: device: Add a minimal RawDevice trait Content-Language: en-US To: Greg Kroah-Hartman Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=c3=b6rn_Roy_Baron?= , Will Deacon , Robin Murphy , Joerg Roedel , Hector Martin , Sven Peter , Arnd Bergmann , "Rafael J. Wysocki" , Alyssa Rosenzweig , Neal Gompa , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, asahi@lists.linux.dev References: <20230224-rust-iopt-rtkit-v1-0-49ced3391295@asahilina.net> <20230224-rust-iopt-rtkit-v1-2-49ced3391295@asahilina.net> From: Asahi Lina In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@vger.kernel.org On 2023/02/24 23:19, Greg Kroah-Hartman wrote:>> Can we see some users of this code posted so I can see how struct device >> is going to work in a rust driver? That's the thing I worry most about >> the rust/C interaction here as we have two different ways of thinking >> about reference counts from the two worlds and putting them together is >> going to be "interesting", as can be seen here already. > > Also, where are you getting your 'struct device' from in the first > place? What bus is createing it and giving it to your rust driver? That would be platform for my GPU driver, matched via OF compatible. ~~ Lina