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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 92515CCF9F0 for ; Thu, 30 Oct 2025 21:16:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E7D8B10EA31; Thu, 30 Oct 2025 21:16:07 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="PtpTPwT6"; dkim-atps=neutral Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7981210EA31; Thu, 30 Oct 2025 21:16:07 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 95C5760541; Thu, 30 Oct 2025 21:16:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52408C4CEF1; Thu, 30 Oct 2025 21:16:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761858966; bh=+NHcvXtDxhDQK0BCd82yMG17qtbqNUMyemzVA1CEOZk=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=PtpTPwT6DPmp6kvIEXa7KfuxLfuk2yfzkYRFE7Yh5LQcWGvBL/ME8OoBF3BRXZ3s5 icGOERXYm6Sm2t2G93oBJiybf3i8CtzsWS+91NnjsYUMqW+0CM3GsnzuAxqZ3Ay9fr 4QgLPhOsWmDxzXoLCWASiYb7iyygnYz2XMJ5i4VB5b28oj8C8c3eNNV12Y0SsPVRv+ txayhoac4485v4zTv4fAQqf+r/PESlV47GzIpCOV/dOCeUOFYhk6agBu3ba2kuV2fi YFMUo5UNbPHvooGMlQQOVZg6BnfZCiY99UWJ9aZPNjyGdvshyKvChlbST8+pOLF0d3 4uyisTVbx5UCQ== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 30 Oct 2025 22:15:59 +0100 Message-Id: Subject: Re: [PATCH RFC 2/4] samples: rust: Add sample demonstrating C linked list iteration Cc: , , , "David Airlie" , , "Alistair Popple" , "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Simona Vetter" , "Maarten Lankhorst" , "Maxime Ripard" , "Thomas Zimmermann" , "John Hubbard" , "Timur Tabi" , , "Elle Rhumsaa" , "Daniel Almeida" , "Andrea Righi" , "Philipp Stanner" , To: "Joel Fernandes" From: "Danilo Krummrich" References: <20251030190613.1224287-1-joelagnelf@nvidia.com> <20251030190613.1224287-3-joelagnelf@nvidia.com> In-Reply-To: <20251030190613.1224287-3-joelagnelf@nvidia.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu Oct 30, 2025 at 8:06 PM CET, Joel Fernandes wrote: > Demonstrates usage of the clist module for iterating over > C-managed linked lists. C code creates and populates the list, > Rust code performs safe iteration using the clist abstraction. I don't think a sample module is the correct choice for this. It makes it l= ook a bit like this is an API intended for drivers. I think kunit tests might be = a better fit.