Re: [PATCH v7 1/8] rust: alloc: add Vec::zeroed method

"Danilo Krummrich" <[email protected]> Mon, 03 Aug 2026 23:22:58 +0200
Newsgroups org.kernel.vger.rust-for-linux,dev.linux.lists.driver-core,dev.linux.lists.nova-gpu
Message-ID <[email protected]>
On Fri Jul 31, 2026 at 10:10 PM CEST, Timur Tabi wrote:
> Add a constructor for kernel Vec that allocates a vector of a given lengt=
h
> with all elements zero-initialized. Memory is allocated with the __GFP_ZE=
RO
> flag, matching the existing KBox::zeroed() pattern.
>
> Signed-off-by: Timur Tabi <[email protected]>
> Reviewed-by: Alexandre Courbot <[email protected]>

Since I provided the code for this patch:

Co-developed-by: Danilo Krummrich <[email protected]>
Signed-off-by: Danilo Krummrich <[email protected]>