mirror of
https://github.com/torvalds/linux.git
synced 2026-08-04 14:27:00 +02:00
Add Box::zeroed() for T: Zeroable types. This allocates with __GFP_ZERO directly, letting the underlying allocator deal with zeroing out the memory compared to Box::new(T::zeroed(), flags). Reviewed-by: Alice Ryhl <aliceryhl@google.com> Link: https://patch.msgid.link/20260505152400.3905096-2-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org> |
||
|---|---|---|
| .. | ||
| allocator | ||
| kvec | ||
| allocator.rs | ||
| kbox.rs | ||
| kvec.rs | ||
| layout.rs | ||