From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B5253909B1 for ; Wed, 18 Mar 2026 08:59:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773824349; cv=none; b=jlgcv6Ltso/W+1RHMASSAG10nZMaUU/BPNaN0MWNHG7h96wF8icy+6UdLvGVlORAl+WgU01xISpzpoLcf38BR5o0FimoRnQdwtV3pzroV6GSugRXlDnzGv1pxTXOI01vmrMnFQer5dDeYe+TxH/mg2q3zZi+tPANJB8PK9x3DSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773824349; c=relaxed/simple; bh=v6SC+ajia4ywcXC3D+3PFfCLKayQwMnlunvdHFv1PYQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=BwsLuAxKmNBxfSmG/UlCh0+Hi21qT+Lz6OV2yIpkDvH9K2B4HBRW70Hgis9z9OIs+IgprsqKbNWhhXTim5PV2644+Na8EWuPU8ctm5Gv1LswZBccGGMP30UHxpHeEEkv7R6IdqFVJsGFGzjmvKkx6CNpN0TfWCNRNbH1RkXhjmo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=GmmurQf9; arc=none smtp.client-ip=209.85.128.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="GmmurQf9" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-4853b00f9f5so69743035e9.2 for ; Wed, 18 Mar 2026 01:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1773824345; x=1774429145; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=MXY9EHBXCnPWVfnYnREpBujBITTjaoQ0F5qTzNSzUus=; b=GmmurQf972ft6P/cl/PgqarKeOw5/yelcD2bc4xGrycCsV9DjatrA43y+1kYah9yHm iuQpO1fKOvDFAxj/Sh3A67ZBgMRH4odNYUy5oZh62e241sGknUplqeKb+QDya3K+8ok8 MHc4RcAqaLDqgGC8RYOpYObP4GKkdCljXXeYYDtyL8ivtJNTiLCHg/x++7wUQCnKPBzX 9ngAvvZEtpe4D3rl9cPJn/RytOTy1ZNoeDt7hbbZgC2ZbF/GPCm7cxeNHj8IV3wvcYE9 pSzl6E0toXtl/Pb10XGHzauFdM7JyQXVNyNwF1KGVBkRFFj5k/erYHmOoO6v7cMSim4z FVzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773824345; x=1774429145; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MXY9EHBXCnPWVfnYnREpBujBITTjaoQ0F5qTzNSzUus=; b=L8ObaiVN4VoAItSyumb1pMSTWobJhmRPwEOF2cjPN+Og7Lvjww0/In3hxLb9PAplaO unevv7IFJCdT7CpkFIQphcgGzsugXxL4U6nre8ZPJEZEYt6Z8Z863NdAjhwOpMfNeWs8 EexKrgzNdcfXlk6WXbb+7e7Z1GFU8RLIjrDvmUvqIN2X3kGryYo0R9fN1YF5PbwpdPVH MU8gS7vEKlYZdUUyaY/+IWGttR+Bb4cCxx+z/B7IohtaWk9YjYhN7YM3GVlhy1nFkNQ4 7/A0mnxqmXM+VszSQaptX7xHZHr5wo6DjQqy7sa4mmh57zATbMlYac/TpSp87NuciO16 nLmg== X-Gm-Message-State: AOJu0Yw4LORw1WKvnlsYGCLiQ4IeXuT3Qg/eugkuagOc2tA67OdNrUYF LAxXrW1P3l/eZl/VwwRHi3DWdaBCEikMk2VkSceT8Ev9yj1BNa4At/r1avrmLVwQ1XupyUD1FSA nvZroHM/0RTaMsBYYfg== X-Received: from wmqe14.prod.google.com ([2002:a05:600c:4e4e:b0:485:3539:bc05]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:a20b:b0:485:3bb5:92cf with SMTP id 5b1f17b1804b1-486f4422300mr29381305e9.12.1773824344660; Wed, 18 Mar 2026 01:59:04 -0700 (PDT) Date: Wed, 18 Mar 2026 08:59:03 +0000 In-Reply-To: <46986da6-8c89-475c-8561-964adaa7d034@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260317201710.934932-1-joelagnelf@nvidia.com> <20260317201710.934932-2-joelagnelf@nvidia.com> <46986da6-8c89-475c-8561-964adaa7d034@nvidia.com> Message-ID: Subject: Re: [PATCH v13 1/1] rust: interop: Add list module for C linked list interface From: Alice Ryhl To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, Miguel Ojeda , Boqun Feng , Gary Guo , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , Alex Gaynor , Danilo Krummrich , Dave Airlie , David Airlie , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Simona Vetter , Daniel Almeida , Koen Koning , Nikola Djukic , Alexandre Courbot , Philipp Stanner , Elle Rhumsaa , Jonathan Corbet , Alex Deucher , "Christian =?utf-8?B?S8O2bmln?=" , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Huang Rui , Matthew Auld , Matthew Brost , Lucas De Marchi , "Thomas =?utf-8?Q?Hellstr=C3=B6m?=" , Helge Deller , John Hubbard , Alistair Popple , Timur Tabi , Edwin Peer , Andrea Righi , Andy Ritger , Zhi Wang , Balbir Singh , alexeyi@nvidia.com, Eliot Courtney , dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-fbdev@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Tue, Mar 17, 2026 at 04:18:46PM -0400, Joel Fernandes wrote: > > > On 3/17/2026 4:17 PM, Joel Fernandes wrote: > > Add a new module `kernel::interop::list` for working with C's doubly > > circular linked lists. Provide low-level iteration over list nodes. > > > > Typed iteration over actual items is provided with a `clist_create` > > macro to assist in creation of the `CList` type. > > > > Cc: Nikola Djukic > > Reviewed-by: Daniel Almeida > > Reviewed-by: Alexandre Courbot > > Acked-by: Alexandre Courbot > > Acked-by: Gary Guo > > Acked-by: Miguel Ojeda > > Signed-off-by: Joel Fernandes > > --- > > MAINTAINERS | 8 + > > rust/helpers/helpers.c | 1 + > > rust/helpers/list.c | 17 ++ > > rust/kernel/interop.rs | 9 + > > rust/kernel/interop/list.rs | 342 ++++++++++++++++++++++++++++++++++++ > > rust/kernel/lib.rs | 2 + > > 6 files changed, 379 insertions(+) > > create mode 100644 rust/helpers/list.c > > create mode 100644 rust/kernel/interop.rs > > create mode 100644 rust/kernel/interop/list.rs > > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 4bd6b538a51f..e847099efcc2 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -23251,6 +23251,14 @@ T: git https://github.com/Rust-for-Linux/linux.git alloc-next > > F: rust/kernel/alloc.rs > > F: rust/kernel/alloc/ > > > > +RUST [INTEROP] > > +M: Joel Fernandes > > +M: Alexandre Courbot > > +L: rust-for-linux@vger.kernel.org > > +S: Maintained > > +T: git https://github.com/Rust-for-Linux/linux.git interop-next > > +F: rust/kernel/interop/ > > Sorry, I forgot to add an additional F: for the rust/kernel/interop.rs file. > Danilo/Miguel, do you mind adding this when applying? I think you should consider a mod.rs file to avoid this. It's tiny, and just re-exports submodules, so I don't think the "mod.rs name in file view" concern is that big, and IMO having files related to interop/ inside the directory is much better than having them outside. Alice