pub unsafe extern "C" fn ubpf_exec(
vm: *const ubpf_vm,
mem: *mut c_void,
mem_len: usize,
bpf_return_value: *mut u64,
) -> c_intExpand description
@brief Execute a BPF program in the VM using the interpreter.
A program must be loaded into the VM and all external functions must be registered before calling this function.
@param[in] vm The VM to execute the program in. @param[in] mem The memory to pass to the program. @param[in] mem_len The length of the memory. @param[in] bpf_return_value The value of the r0 register when the program exits. @retval 0 Success. @retval -1 Failure.