rust/helpers/rbtree.c

Source file repositories/reference/linux-study-clean/rust/helpers/rbtree.c

File Facts

System
Linux kernel
Corpus path
rust/helpers/rbtree.c
Extension
.c
Size
454 bytes
Lines
21
Domain
Rust Kernel Layer
Bucket
Rust API Membrane
Inferred role
Rust Kernel Layer: implementation source
Status
source implementation candidate

Why This File Exists

Rust-side wrappers and abstractions around kernel C APIs, ownership contracts, allocation, synchronization, and module integration.

Dependency Surface

Detected Declarations

Annotated Snippet

// 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);
}

Annotation

Implementation Notes