2012-10-08 16:31:23 -07:00
|
|
|
#include <linux/interval_tree.h>
|
2012-10-08 16:31:35 -07:00
|
|
|
#include <linux/interval_tree_generic.h>
|
2015-02-12 15:02:32 -08:00
|
|
|
#include <linux/compiler.h>
|
|
|
|
|
#include <linux/export.h>
|
2012-10-08 16:31:23 -07:00
|
|
|
|
2012-10-08 16:31:35 -07:00
|
|
|
#define START(node) ((node)->start)
|
|
|
|
|
#define LAST(node) ((node)->last)
|
2012-10-08 16:31:23 -07:00
|
|
|
|
2012-10-08 16:31:35 -07:00
|
|
|
INTERVAL_TREE_DEFINE(struct interval_tree_node, rb,
|
|
|
|
|
unsigned long, __subtree_last,
|
|
|
|
|
START, LAST,, interval_tree)
|
2014-03-17 12:21:54 +00:00
|
|
|
|
|
|
|
|
EXPORT_SYMBOL_GPL(interval_tree_insert);
|
|
|
|
|
EXPORT_SYMBOL_GPL(interval_tree_remove);
|
|
|
|
|
EXPORT_SYMBOL_GPL(interval_tree_iter_first);
|
|
|
|
|
EXPORT_SYMBOL_GPL(interval_tree_iter_next);
|