Re: [PATCH v5 1/8] rust: alloc: add Vec::zeroed method
Miguel Ojeda <[email protected]> Sat, 11 Jul 2026 15:25:25 +0200
| Newsgroups | dev.linux.lists.nova-gpu,dev.linux.lists.driver-core,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <CANiq72nENzJejiO3pmV9FhRA+H+zvCtfzWY0=wbTERToceiu3g@mail.gmail.com> |
On Sat, Jul 11, 2026 at 1:05 AM Timur Tabi <[email protected]> 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. Cheers, Miguel