[PATCH v20 1/8] rust: alloc: add `KBox::into_non_null`

Danilo Krummrich dakr at kernel.org
Tue Aug 25 13:01:57 UTC 2026


On Mon Aug 24, 2026 at 1:17 PM CEST, Andreas Hindborg wrote:
> Add a method to consume a `Box<T, A>` and return a `NonNull<T>`. This
> is a convenience wrapper around `Self::into_raw` for callers that need
> a `NonNull` pointer rather than a raw pointer.
>
> Signed-off-by: Andreas Hindborg <a.hindborg at kernel.org>
> Reviewed-by: Alice Ryhl <aliceryhl at google.com>
> Reviewed-by: Gary Guo <gary at garyguo.net>

Acked-by: Danilo Krummrich <dakr at kernel.org>



More information about the Linux-security-module-archive mailing list