linux/rust
Alice Ryhl ac9eea3d08 rust: alloc: implement Box::pin_slice()
Add a new constructor to Box to facilitate Box creation from a pinned
slice of elements. This allows to efficiently allocate memory for e.g.
slices of structrures containing spinlocks or mutexes. Such slices may
be used in kmemcache like or zpool API implementations.

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.se>
Link: https://lore.kernel.org/r/20250811101456.2901694-1-vitaly.wool@konsulko.se
[ Add empty lines after struct definitions in the example; end sentences
  with a period. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2025-08-21 16:42:49 +02:00
..
bindings rust: alloc: specify the minimum alignment of each allocator 2025-08-15 20:55:16 +02:00
helpers Rust changes for v6.17 2025-08-03 13:49:10 -07:00
kernel rust: alloc: implement Box::pin_slice() 2025-08-21 16:42:49 +02:00
macros Rust changes for v6.17 2025-08-03 13:49:10 -07:00
pin-init pin-init changes for v6.17 2025-07-13 23:05:14 +02:00
uapi rust: enable clippy::ref_as_ptr lint 2025-06-22 23:09:32 +02:00
.gitignore
.kunitconfig rust: add kunitconfig 2025-03-19 23:22:21 +01:00
bindgen_parameters rust: alloc: add ARCH_KMALLOC_MINALIGN to bindgen blocklist 2025-08-19 20:01:18 +02:00
build_error.rs
compiler_builtins.rs ARM: 9441/1: rust: Enable Rust support for ARMv7 2025-03-26 13:31:16 +00:00
exports.c rust: exports: improve grammar in commentary 2024-10-21 17:35:33 +02:00
ffi.rs rust: use absolute paths in macros referencing core and kernel 2025-05-23 00:12:14 +02:00
Makefile Rust changes for v6.17 2025-08-03 13:49:10 -07:00