interval_tree.c 499 B

1234567891011121314151617
  1. #include <linux/interval_tree.h>
  2. #include <linux/interval_tree_generic.h>
  3. #include <linux/compiler.h>
  4. #include <linux/export.h>
  5. #define START(node) ((node)->start)
  6. #define LAST(node) ((node)->last)
  7. INTERVAL_TREE_DEFINE(struct interval_tree_node, rb,
  8. unsigned long, __subtree_last,
  9. START, LAST,, interval_tree)
  10. EXPORT_SYMBOL_GPL(interval_tree_insert);
  11. EXPORT_SYMBOL_GPL(interval_tree_remove);
  12. EXPORT_SYMBOL_GPL(interval_tree_iter_first);
  13. EXPORT_SYMBOL_GPL(interval_tree_iter_next);