rust/helpers/fs.c

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

File Facts

System
Linux kernel
Corpus path
rust/helpers/fs.c
Extension
.c
Size
191 bytes
Lines
13
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

/*
 * Copyright (C) 2024 Google LLC.
 */

#include <linux/fs.h>

__rust_helper struct file *rust_helper_get_file(struct file *f)
{
	return get_file(f);
}

Annotation

Implementation Notes