[PATCH v17 01/10] rust: alloc: add `KBox::into_non_null`
Alice Ryhl
aliceryhl at google.com
Tue Jun 16 11:50:27 UTC 2026
On Thu, Jun 04, 2026 at 10:11:13PM +0200, 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>
More information about the Linux-security-module-archive
mailing list