rust/zerocopy/benches/insert_vec_zeroed.rs

Source file repositories/reference/linux-study-clean/rust/zerocopy/benches/insert_vec_zeroed.rs

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/insert_vec_zeroed.rs
Extension
.rs
Size
284 bytes
Lines
14
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

use zerocopy::*;

#[path = "formats/coco_static_size.rs"]
mod format;

#[unsafe(no_mangle)]
fn bench_insert_vec_zeroed(
    v: &mut Vec<format::LocoPacket>,
    position: usize,
    additional: usize,
) -> Option<()> {
    FromZeros::insert_vec_zeroed(v, position, additional).ok()
}

Annotation

Implementation Notes