From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 ACADA392C3A for ; Wed, 18 Mar 2026 08:59:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773824348; cv=none; b=eyRu8bB3ZH5PzQl7YK0w09XUuvvHapG8rvXFvVKwhj9oy6Mm7GK7pv91n5HECMS1TENcCePj0zGGYsr4M0f+LPK2VZ2m79hXcFBJK8Kg21D5G48P+evR+ccZaqUTacSEfyc4H854v/D7O71Krz/9Qhowe4CMDvS3ptasEaPPghE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773824348; c=relaxed/simple; bh=v6SC+ajia4ywcXC3D+3PFfCLKayQwMnlunvdHFv1PYQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=qtDLu8RsOVXxiFwRRwBMttrUMeAOKZfA0LuJXEMKQZQBESoTQElS6uvxDTV3yaqtym2dP3uacrR8NH4e+u5mOogs9FQ38V62o8nHbob4OeSdFijZw+5g4br0M7b4FBOJ5JjG4dvSGwZejWc0ENjGtgklUnnsLYh0YkMlAjtgTYg= 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.74 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-f74.google.com with SMTP id 5b1f17b1804b1-4853b00f9f5so69743145e9.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=ZkwFyK3Ugc3sZAWbO3Sr6C1ObEfuYvy+R+zNOtJ4roovXL4sfrVs/4oRrIRBrFlD90 c7upL0M+6t15EkEKaTB51kcXgmCqAGkQQUD00ptoFBC1IidwtwccH4x2CNi7cvY94U0K yq1F2GfPu1xZKw3u26BIob+QTZTfMqRrXn+aQsRGhejQeCVv6uPXqb6zZJE2fLwLJIx8 tIfLU4AG82bQkeumxFGEmjTMIWw0mAOvwZVPaXKYZwnRLsMieRmzkKB8vMNe0mbigsAb ygn6G1QBy1atPp8zQ+bDjixu8S9iTZswy7Jnafpj8b0J3zrsKud5Jt+RPe7VZG3sd3K2 Dcmg== X-Forwarded-Encrypted: i=1; AJvYcCWByMtPr2Z7Pa+GZ9YMDfyoJUERqxiTxq+qRp+pvBG03JAAZwL+0Z6ItGov/ybAbIVu4wvCFXCjFsoCiQ==@vger.kernel.org X-Gm-Message-State: AOJu0YxkFyayCaT+2hC93EQ+O+GT3rgVht4PjBfmC8o4361N3D7ryZik QnDYac1Hy++UgWROmdwrIMsfsNhbzUyHPIWVbKTqGyEJQNCIHSc+2p9KEp2els32fiy/vuMz3Xn a+uNaHwQgNnDQ2gk0VQ== 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-fbdev@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