Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/tools/testing/shared/maple-shim.c
29266 views
1
// SPDX-License-Identifier: GPL-2.0-or-later
2
3
/* Very simple shim around the maple tree. */
4
5
#include "maple-shared.h"
6
#include <linux/slab.h>
7
8
#include "../../../lib/maple_tree.c"
9
10
void maple_rcu_cb(struct rcu_head *head) {
11
struct maple_node *node = container_of(head, struct maple_node, rcu);
12
13
kmem_cache_free(maple_node_cache, node);
14
}
15
16