diff options
| author | Timur Tabi <ttabi@nvidia.com> | 2026-07-31 15:10:10 -0500 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-08-06 01:22:14 +0200 |
| commit | 60782beb112ee1514ea7888adc9a53dc370fc522 (patch) | |
| tree | ba762a448e80367cdde6b1dd13d4b0f54c8566da /tools/perf/scripts/python | |
| parent | 528aef3a4bdd85137de9ec76bd02eacdf8160bb5 (diff) | |
rust: alloc: add Vec::zeroed method
Add a constructor for kernel Vec that allocates a vector of a given length
with all elements zero-initialized. Memory is allocated with the __GFP_ZERO
flag, matching the existing KBox::zeroed() pattern.
Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260731201017.2580713-2-ttabi@nvidia.com
Co-developed-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
