[][src]Crate solana_bpf_loader

Modules

alloc
allocator_bump
allocator_system
bpf_verifier

Functions

create_vm
helper_abort
helper_abort_verify

Abort helper functions, called when the BPF program calls abort()

helper_sol_alloc_free

Dynamic memory allocation helper called when the BPF program calls sol_alloc_free_(). The allocator is expected to allocate/free from/to a given chunk of memory and enforce size restrictions. The memory chunk is given to the allocator during allocator creation and information about that memory (start address and size) is passed to the VM to use for enforcement.

helper_sol_log
helper_sol_log_u64
helper_sol_log_verify

Logging helper functions, called when the BPF program calls sol_log_() or sol_log_64_(). Both functions use a common verify function to validate their parameters.

helper_sol_panic
helper_sol_panic_verify

Panic helper functions, called when the BPF program calls 'sol_panic_()` The verify function returns an error which will cause the BPF program to be halted immediately

process