Re: [PATCH v5 1/8] rust: alloc: add Vec::zeroed method
Timur Tabi <[email protected]> Mon, 13 Jul 2026 02:21:34 +0000
| Newsgroups | dev.linux.lists.nova-gpu,dev.linux.lists.driver-core,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 2026-07-11 at 15:25 +0200, Miguel Ojeda wrote: > > + /// Creates a new [`Vec`] with `n` zero-initialized elements. > > + /// > > + /// New memory is allocated with `A` and the [`__GFP_ZERO`] flag. > > This may be obvious since we pass `flags` and the function only does > this, but the sentence (here and in the commit message) sounds a bit > like only that flag is used. Ok, I'll reword it in v6.