diff options
author | Alice Ryhl <aliceryhl@google.com> | 2025-05-02 16:19:35 +0300 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2025-05-07 19:40:45 +0300 |
commit | 771c5a7d9843643b035938624050e7769133b9cc (patch) | |
tree | e328eff02159405cd517a2c47b2ae14cd1532a50 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 294a7ecbdf0a5d65c6df1287c5d56241e9331cf2 (diff) | |
download | linux-771c5a7d9843643b035938624050e7769133b9cc.tar.xz |
rust: alloc: add Vec::insert_within_capacity
This adds a variant of Vec::insert that does not allocate memory. This
makes it safe to use this function while holding a spinlock. Rust Binder
uses it for the range allocator fast path.
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Link: https://lore.kernel.org/r/20250502-vec-methods-v5-7-06d20ad9366f@google.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions