rbtree.c 454 B

1234567891011121314151617181920
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/rbtree.h>
  3. __rust_helper void rust_helper_rb_link_node(struct rb_node *node,
  4. struct rb_node *parent,
  5. struct rb_node **rb_link)
  6. {
  7. rb_link_node(node, parent, rb_link);
  8. }
  9. __rust_helper struct rb_node *rust_helper_rb_first(const struct rb_root *root)
  10. {
  11. return rb_first(root);
  12. }
  13. __rust_helper struct rb_node *rust_helper_rb_last(const struct rb_root *root)
  14. {
  15. return rb_last(root);
  16. }