[PATCH v17 01/10] rust: alloc: add `KBox::into_non_null`
Gary Guo
gary at garyguo.net
Tue Jun 16 11:52:10 UTC 2026
On Thu Jun 4, 2026 at 9:11 PM BST, 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: Gary Guo <gary at garyguo.net>
> ---
> rust/kernel/alloc/kbox.rs | 9 +++++++++
> 1 file changed, 9 insertions(+)
More information about the Linux-security-module-archive
mailing list