rust/zerocopy/benches/write_to_dynamic_size.x86-64

Source file repositories/reference/linux-study-clean/rust/zerocopy/benches/write_to_dynamic_size.x86-64

File Facts

System
Linux kernel
Corpus path
rust/zerocopy/benches/write_to_dynamic_size.x86-64
Extension
.x86-64
Size
298 bytes
Lines
22
Domain
Rust Kernel Layer
Bucket
Rust API Membrane
Inferred role
Rust Kernel Layer: Rust API Membrane
Status
atlas-only

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

bench_write_to_dynamic_size:
	push r14
	push rbx
	push rax
	mov rbx, rcx
	lea r14, [2*rsi + 5]
	and r14, -2
	cmp rcx, r14
	jne .LBB5_2
	mov rax, rdi
	mov rdi, rdx
	mov rsi, rax
	mov rdx, rbx
	call qword ptr [rip + memcpy@GOTPCREL]
.LBB5_2:
	cmp rbx, r14
	sete al
	add rsp, 8
	pop rbx
	pop r14
	ret

Annotation

Implementation Notes