rust/zerocopy/benches/new_box_zeroed_with_elems_dynamic_padding.rs

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

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/new_box_zeroed_with_elems_dynamic_padding.rs
Extension
.rs
Size
260 bytes
Lines
12
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_dynamic_padding.rs"]
mod format;

#[unsafe(no_mangle)]
fn bench_new_box_zeroed_with_elems_dynamic_padding(
    count: usize,
) -> Option<Box<format::LocoPacket>> {
    FromZeros::new_box_zeroed_with_elems(count).ok()
}

Annotation

Implementation Notes