Thread (27 messages) 27 messages, 5 authors, 16d ago

Re: [PATCH v17 01/10] rust: alloc: add `KBox::into_non_null`

From: "Gary Guo" <gary@garyguo.net>
Date: 2026-06-16 11:52:17
Also in: dri-devel, driver-core, linux-block, linux-fsdevel, linux-mm, linux-pci, linux-pm, lkml, rust-for-linux

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@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
---
 rust/kernel/alloc/kbox.rs | 9 +++++++++
 1 file changed, 9 insertions(+)
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help