|
@@ -5,6 +5,7 @@
|
|
#include <linux/rcupdate.h>
|
|
#include <linux/rcupdate.h>
|
|
|
|
|
|
struct item {
|
|
struct item {
|
|
|
|
+ struct rcu_head rcu_head;
|
|
unsigned long index;
|
|
unsigned long index;
|
|
unsigned int order;
|
|
unsigned int order;
|
|
};
|
|
};
|
|
@@ -15,6 +16,7 @@ int item_insert(struct radix_tree_root *root, unsigned long index);
|
|
int item_insert_order(struct radix_tree_root *root, unsigned long index,
|
|
int item_insert_order(struct radix_tree_root *root, unsigned long index,
|
|
unsigned order);
|
|
unsigned order);
|
|
int item_delete(struct radix_tree_root *root, unsigned long index);
|
|
int item_delete(struct radix_tree_root *root, unsigned long index);
|
|
|
|
+int item_delete_rcu(struct radix_tree_root *root, unsigned long index);
|
|
struct item *item_lookup(struct radix_tree_root *root, unsigned long index);
|
|
struct item *item_lookup(struct radix_tree_root *root, unsigned long index);
|
|
|
|
|
|
void item_check_present(struct radix_tree_root *root, unsigned long index);
|
|
void item_check_present(struct radix_tree_root *root, unsigned long index);
|