summaryrefslogtreecommitdiff
path: root/rust/helpers/rbtree.c
blob: a85defb22ff7c6d5104a503f4456294bfc2b4756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-License-Identifier: GPL-2.0

#include <linux/rbtree.h>

__rust_helper void rust_helper_rb_link_node(struct rb_node *node,
					    struct rb_node *parent,
					    struct rb_node **rb_link)
{
	rb_link_node(node, parent, rb_link);
}

__rust_helper struct rb_node *rust_helper_rb_first(const struct rb_root *root)
{
	return rb_first(root);
}

__rust_helper struct rb_node *rust_helper_rb_last(const struct rb_root *root)
{
	return rb_last(root);
}