eBPF for Windows
ebpf_core_structs.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation
2 // SPDX-License-Identifier: MIT
3 
4 // This file contains eBPF definitions common to eBPF core libraries as well as
5 // the eBPF API library.
6 
7 #pragma once
8 
9 #include <sal.h>
10 #include <stdint.h>
11 #include "ebpf_structs.h"
12 
13 #define EBPF_MAX_PIN_PATH_LENGTH 256
14 
18 typedef struct _ebpf_map_info
19 {
21  _Field_z_ char* pin_path;
23 
24 typedef intptr_t ebpf_handle_t;
25 extern __declspec(selectany) const ebpf_handle_t ebpf_handle_invalid = (ebpf_handle_t)-1;
26 
28 {
29  size_t producer;
30  size_t consumer;
_ebpf_map_info::pin_path
_Field_z_ char * pin_path
Definition: ebpf_core_structs.h:21
ebpf_handle_t
intptr_t ebpf_handle_t
Definition: ebpf_api.h:24
ebpf_ring_buffer_map_async_query_result_t
struct _ebpf_ring_buffer_map_async_query_result ebpf_ring_buffer_map_async_query_result_t
_ebpf_ring_buffer_map_async_query_result
Definition: ebpf_core_structs.h:27
_ebpf_ring_buffer_map_async_query_result::consumer
size_t consumer
Definition: ebpf_core_structs.h:30
ebpf_handle_invalid
const ebpf_handle_t ebpf_handle_invalid
ebpf_map_info_t
struct _ebpf_map_info ebpf_map_info_t
eBPF Map Information
_ebpf_map_definition_in_memory
eBPF Map Definition as it is stored in memory.
Definition: ebpf_structs.h:98
_ebpf_ring_buffer_map_async_query_result::producer
size_t producer
Definition: ebpf_core_structs.h:29
_ebpf_map_info
eBPF Map Information
Definition: ebpf_core_structs.h:18
ebpf_handle_t
intptr_t ebpf_handle_t
Definition: ebpf_core_structs.h:24
ebpf_structs.h
_ebpf_map_info::definition
ebpf_map_definition_in_memory_t definition
Definition: ebpf_core_structs.h:20