summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorWedson Almeida Filho <wedsonaf@gmail.com>2024-08-22 19:37:55 +0300
committerMiguel Ojeda <ojeda@kernel.org>2024-08-31 18:36:19 +0300
commitcf5397d1776489e1c66b7db01f6a58c431ab08f1 (patch)
treea751eacaa160faa4737ea12e6a549e5b74a9eb83 /rust/helpers/helpers.c
parente601f1bb8e859758289b1c52503bc626168fba59 (diff)
downloadlinux-cf5397d1776489e1c66b7db01f6a58c431ab08f1.tar.xz
rust: rbtree: add mutable iterator
Add mutable Iterator implementation for `RBTree`, allowing iteration over (key, value) pairs in key order. Only values are mutable, as mutating keys implies modifying a node's position in the tree. Mutable iteration is used by the binder driver during shutdown to clean up the tree maintained by the "range allocator" [1]. Link: https://lore.kernel.org/rust-for-linux/20231101-rust-binder-v1-6-08ba9197f637@google.com/ [1] Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Tested-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Signed-off-by: Matt Gilbride <mattgilbride@google.com> Link: https://lore.kernel.org/r/20240822-b4-rbtree-v12-3-014561758a57@google.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions