MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / set_callback_params

Method set_callback_params

plugins/wasm_bpf/wasm-bpf.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91};
92
93void bpf_buffer::set_callback_params(
94 WasmEdge_ExecutorContext *executor,
95 const WasmEdge_ModuleInstanceContext *module_instance, uint32_t sample_func,
96 void *data, size_t max_size, uint32_t ctx, uint32_t buf_ptr) {
97 wasm_executor = executor;
98 wasm_module_instance = module_instance;
99 wasm_sample_function = sample_func;
100 poll_data = data;
101 max_poll_size = max_size;
102 wasm_ctx = ctx;
103 wasm_buf_ptr = buf_ptr;
104}
105
106bool bpf_buffer::is_valid() const {
107 auto module_inst = wasm_module_instance;

Callers 1

bpf_buffer_pollMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected