Expand description
The Rust-based BPF program entrypoint supported by the latest BPF loader.
For more information see the bpf_loader
module.
Macros§
- __msg
- Print a message to the log.
- custom_
heap_ default - Define the default global allocator.
- custom_
panic_ default - Define the default global panic handler.
- entrypoint
- Declare the program entrypoint and set up global handlers.
- entrypoint_
no_ alloc - Declare the program entrypoint and set up global handlers.
Structs§
- Bump
Allocator - The bump allocator used as the default rust heap when running programs.
Constants§
- BPF_
ALIGN_ OF_ U128 assert_eq(std::mem::align_of::<u128>(), 8)
is true for BPF but not for some host machines- HEAP_
LENGTH - Length of the heap memory region used for program heap.
- HEAP_
START_ ADDRESS - Start address of the memory region used for program heap.
- MAX_
PERMITTED_ DATA_ INCREASE - Maximum number of bytes a program may add to an account during a single realloc
- NON_
DUP_ MARKER - Value used to indicate that a serialized account is not a duplicate
- SUCCESS
- Programs indicate success with a return value of 0
Functions§
- deserialize⚠
- Deserialize the input arguments
- deserialize_
into ⚠ - Deserialize the input arguments
Type Aliases§
- Process
Instruction - User implemented function to process an instruction
- Program
Result