[RFC PATCH 0/2] rust: add support for maple trees
From: Andrew Ballance
Date: Sat Apr 05 2025 - 02:03:42 EST
This RFC adds an initial implementation of maple tree abstractions.
I would like any feedback possible.
I would like to upstream this eventually but, it's probably going to
be a bit until there is a user.
Andrew Ballance (2):
maple_tree: add __mtree_insert_range function
rust: add maple tree abstractions
include/linux/maple_tree.h | 2 +
lib/maple_tree.c | 37 ++++
rust/helpers/helpers.c | 1 +
rust/helpers/maple_tree.c | 25 +++
rust/kernel/lib.rs | 1 +
rust/kernel/maple_tree.rs | 340 +++++++++++++++++++++++++++++++++++++
6 files changed, 406 insertions(+)
create mode 100644 rust/helpers/maple_tree.c
create mode 100644 rust/kernel/maple_tree.rs
base-commit: 38fec10eb60d687e30c8c6b5420d86e8149f7557
--
2.49.0