eBPF for Windows
ebpf_store_helper.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation
2 // SPDX-License-Identifier: MIT
3 
4 #pragma once
5 
6 #include "ebpf_program_types.h"
7 #include "ebpf_shared_framework.h"
8 #include "ebpf_windows.h"
9 #ifdef USER_MODE
10 #include "ebpf_utilities.h"
11 #else
12 #include <minwindef.h>
13 #include <wdm.h>
14 #endif
15 
16 #define GUID_STRING_LENGTH 38 // not including the null terminator.
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23  typedef HKEY ebpf_store_key_t;
24 
26  extern const wchar_t* ebpf_store_root_sub_key;
27 
38  ebpf_store_key_t helper_info_key, _In_ const ebpf_helper_function_prototype_t* helper_info);
39 
50  _In_reads_(helper_info_count) ebpf_helper_function_prototype_t* helper_info, uint32_t helper_info_count);
51 
62  _In_reads_(section_info_count) const ebpf_program_section_info_t* section_info, uint32_t section_info_count);
63 
74  _In_reads_(program_info_count) const ebpf_program_info_t* program_info, uint32_t program_info_count);
75 
76 #ifdef __cplusplus
77 }
78 #endif
enum ebpf_result ebpf_result_t
ebpf_result_t ebpf_store_update_section_information(_In_reads_(section_info_count) const ebpf_program_section_info_t *section_info, uint32_t section_info_count)
Update section information in the eBPF store.
ebpf_result_t ebpf_store_update_program_information(_In_reads_(program_info_count) const ebpf_program_info_t *program_info, uint32_t program_info_count)
Update program information in the eBPF store.
HKEY ebpf_store_key_t
Definition: ebpf_store_helper.h:23
ebpf_result_t ebpf_store_update_helper_prototype(ebpf_store_key_t helper_info_key, const ebpf_helper_function_prototype_t *helper_info)
Update the provider prototype information in the eBPF store.
ebpf_store_key_t ebpf_store_root_key
const wchar_t * ebpf_store_root_sub_key
ebpf_result_t ebpf_store_update_global_helper_information(_In_reads_(helper_info_count) ebpf_helper_function_prototype_t *helper_info, uint32_t helper_info_count)
Update global helper information in the eBPF store.
Definition: ebpf_program_types.h:24
Definition: ebpf_program_types.h:32
Definition: ebpf_program_types.h:74