Go to the source code of this file.
◆ EBPF_CONTEXT_HEADER
#define EBPF_CONTEXT_HEADER uint64_t context_header[8] |
◆ EBPF_LINK_DISPATCH_TABLE_FUNCTION_COUNT_1
#define EBPF_LINK_DISPATCH_TABLE_FUNCTION_COUNT_1 4 |
◆ EBPF_LINK_DISPATCH_TABLE_FUNCTION_COUNT_CURRENT
Current number of functions in the dispatch table.
◆ _ebpf_extension_dispatch_function
◆ ebpf_attach_provider_data_t
◆ ebpf_execution_context_state_t
◆ ebpf_extension_data_t
◆ ebpf_extension_dispatch_table_t
◆ ebpf_extension_program_dispatch_table_t
◆ ebpf_link_dispatch_table_version_t
◆ ebpf_program_batch_begin_invoke_function_t
typedef ebpf_result_t(* ebpf_program_batch_begin_invoke_function_t) (size_t state_size, _Out_writes_(state_size) void *state) |
Prepare the eBPF program for batch invocation.
- Parameters
-
[in] | state_size | The size of the state to be allocated, which should be greater than or equal to sizeof(ebpf_execution_context_state_t). |
[out] | state | The state to be used for batch invocation. |
- Return values
-
EBPF_SUCCESS | The operation was successful. |
EBPF_NO_MEMORY | The operation failed due to lack of memory. |
EBPF_EXTENSION_FAILED_TO_LOAD | The required extension is not loaded. |
◆ ebpf_program_batch_end_invoke_function_t
typedef ebpf_result_t(* ebpf_program_batch_end_invoke_function_t) (_Inout_ void *state) |
Clean up the eBPF program after batch invocation.
- Parameters
-
[in,out] | state | The state to be used for batch invocation. |
- Return values
-
EBPF_SUCCESS | The operation was successful. |
◆ ebpf_program_batch_invoke_function_t
typedef ebpf_result_t(* ebpf_program_batch_invoke_function_t) (const void *extension_client_binding_context, _Inout_ void *program_context, uint32_t *result, const void *state) |
Invoke the eBPF program in batch mode.
- Parameters
-
[in] | extension_client_binding_context | The context provided by the extension client when the binding was created. |
[in,out] | program_context | The context for this invocation of the eBPF program. |
[out] | result | The result of the eBPF program. |
[in] | state | The state to be used for batch invocation. |
- Return values
-
EBPF_SUCCESS | The operation was successful. |
◆ ebpf_program_invoke_function_t
typedef ebpf_result_t(* ebpf_program_invoke_function_t) (const void *extension_client_binding_context, _Inout_ void *program_context, uint32_t *result) |
Invoke the eBPF program.
- Parameters
-
[in] | extension_client_binding_context | The context provided by the extension client when the binding was created. |
[in,out] | program_context | The context for this invocation of the eBPF program. |
[out] | result | The result of the eBPF program. |
- Return values
-
EBPF_SUCCESS | The operation was successful. |
EBPF_NO_MEMORY | The operation failed due to lack of memory. |
EBPF_EXTENSION_FAILED_TO_LOAD | The required extension is not loaded. |
◆ _ebpf_link_dispatch_table_version
Enumerator |
---|
EBPF_LINK_DISPATCH_TABLE_VERSION_1 | Initial version of the dispatch table.
|
EBPF_LINK_DISPATCH_TABLE_VERSION_CURRENT | Current version of the dispatch table.
|