[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DG6AIA0QK77C.EKG7X4NBEJ00@kernel.org>
Date: Wed, 04 Feb 2026 16:41:28 +0100
From: "Danilo Krummrich" <dakr@...nel.org>
To: "Andreas Hindborg" <a.hindborg@...nel.org>
Cc: "Miguel Ojeda" <ojeda@...nel.org>, "Boqun Feng" <boqun.feng@...il.com>,
"Gary Guo" <gary@...yguo.net>, Björn Roy Baron
<bjorn3_gh@...tonmail.com>, "Benno Lossin" <lossin@...nel.org>, "Alice
Ryhl" <aliceryhl@...gle.com>, "Trevor Gross" <tmgross@...ch.edu>, "Greg
Kroah-Hartman" <gregkh@...uxfoundation.org>, "Dave Ertman"
<david.m.ertman@...el.com>, "Ira Weiny" <ira.weiny@...el.com>, "Leon
Romanovsky" <leon@...nel.org>, "Paul Moore" <paul@...l-moore.com>, "Serge
Hallyn" <sergeh@...nel.org>, "Rafael J. Wysocki" <rafael@...nel.org>,
"David Airlie" <airlied@...il.com>, "Simona Vetter" <simona@...ll.ch>,
"Alexander Viro" <viro@...iv.linux.org.uk>, "Christian Brauner"
<brauner@...nel.org>, "Jan Kara" <jack@...e.cz>, "Igor Korotin"
<igor.korotin.linux@...il.com>, "Daniel Almeida"
<daniel.almeida@...labora.com>, "Lorenzo Stoakes"
<lorenzo.stoakes@...cle.com>, "Liam R. Howlett" <Liam.Howlett@...cle.com>,
"Viresh Kumar" <vireshk@...nel.org>, "Nishanth Menon" <nm@...com>, "Stephen
Boyd" <sboyd@...nel.org>, "Bjorn Helgaas" <bhelgaas@...gle.com>,
Krzysztof Wilczyński <kwilczynski@...nel.org>,
<linux-kernel@...r.kernel.org>, <rust-for-linux@...r.kernel.org>,
<linux-block@...r.kernel.org>, <linux-security-module@...r.kernel.org>,
<dri-devel@...ts.freedesktop.org>, <linux-fsdevel@...r.kernel.org>,
<linux-mm@...ck.org>, <linux-pm@...r.kernel.org>,
<linux-pci@...r.kernel.org>, "Asahi Lina" <lina+kernel@...hilina.net>
Subject: Re: [PATCH v14 1/9] rust: types: Add Ownable/Owned types
On Wed Feb 4, 2026 at 12:56 PM CET, Andreas Hindborg wrote:
> From: Asahi Lina <lina+kernel@...hilina.net>
>
> By analogy to `AlwaysRefCounted` and `ARef`, an `Ownable` type is a
> (typically C FFI) type that *may* be owned by Rust, but need not be. Unlike
> `AlwaysRefCounted`, this mechanism expects the reference to be unique
> within Rust, and does not allow cloning.
>
> Conceptually, this is similar to a `KBox<T>`, except that it delegates
> resource management to the `T` instead of using a generic allocator.
>
> This change is a derived work based on work by Asahi Lina
> <lina+kernel@...hilina.net> [1] and Oliver Mangold <oliver.mangold@...me>.
>
> Link: https://lore.kernel.org/rust-for-linux/20250202-rust-page-v1-1-e3170d7fe55e@asahilina.net/ [1]
> Signed-off-by: Andreas Hindborg <a.hindborg@...nel.org>
Given the From: line above, this needs Lina's SoB.
This patch was also originally posted by Abdiel and Boqun and I think we should
account for this. I mentioned this in a couple of previous versions already,
e.g. in [1]. I think we should account for this.
[1] https://lore.kernel.org/all/cc28d048-5e0f-4f0e-b0f2-1b9e240f639b@kernel.org/
Powered by blists - more mailing lists