File wamr/faasm.cpp
-
namespace wasm
SYSCALL NUMBERING
Have a look in the sysroot at include/bits/syscall.h to determine the system call numbering.
Functions
-
uint32_t getFaasmFunctionsApi(NativeSymbol **nativeSymbols)
-
static std::shared_ptr<faabric::state::StateKeyValue> getStateKV(int32_t *keyPtr, size_t size = 0)
-
static void __faasm_append_state_wrapper(wasm_exec_env_t execEnv, int32_t *keyPtr, uint8_t *dataPtr, int32_t dataLen)
-
static int32_t __faasm_await_call_wrapper(wasm_exec_env_t exec_env, int32_t callId)
Await a chained function’s completion
-
static int32_t __faasm_chain_name_wrapper(wasm_exec_env_t execEnv, const char *name, const uint8_t *input, uint32_t inputSize)
Chain a function by name
-
static int32_t __faasm_chain_ptr_wrapper(wasm_exec_env_t exec_env, int32_t wasmFuncPtr, char *inBuff, int32_t inLen)
Chain a function by function pointer
-
static void __faasm_host_interface_test_wrapper(wasm_exec_env_t execEnv, int32_t testNum)
-
static void __faasm_migrate_point_wrapper(wasm_exec_env_t execEnv, int32_t wasmFuncPtr, int32_t funcArg)
-
static void __faasm_pull_state_wrapper(wasm_exec_env_t execEnv, int32_t *keyPtr, int32_t stateLen)
-
static void __faasm_push_state_wrapper(wasm_exec_env_t execEnv, int32_t *keyPtr)
-
static void __faasm_read_appended_state_wrapper(wasm_exec_env_t execEnv, int32_t *keyPtr, uint8_t *bufferPtr, int32_t bufferLen, int32_t numElems)
-
static int32_t __faasm_read_input_wrapper(wasm_exec_env_t exec_env, char *inBuff, int32_t inLen)
Read the function input
-
static void __faasm_write_output_wrapper(wasm_exec_env_t exec_env, char *outBuff, int32_t outLen)
Set the function output
Variables
-
static NativeSymbol ns[] = {REG_NATIVE_FUNC(__faasm_append_state, "(**i)"), REG_NATIVE_FUNC(__faasm_await_call, "(i)i"), REG_NATIVE_FUNC(__faasm_chain_name, "($$i)i"), REG_NATIVE_FUNC(__faasm_chain_ptr, "(i$i)i"), REG_NATIVE_FUNC(__faasm_host_interface_test, "(i)"), REG_NATIVE_FUNC(__faasm_migrate_point, "(ii)"), REG_NATIVE_FUNC(__faasm_pull_state, "(*i)"), REG_NATIVE_FUNC(__faasm_push_state, "(*)"), REG_NATIVE_FUNC(__faasm_read_appended_state, "(**ii)"), REG_NATIVE_FUNC(__faasm_read_input, "($i)i"), REG_NATIVE_FUNC(__faasm_write_output, "($i)"),}
-
uint32_t getFaasmFunctionsApi(NativeSymbol **nativeSymbols)