eBPF for Windows
ebpf_core_structs.h
Go to the documentation of this file.
1 // Copyright (c) eBPF for Windows contributors
2 // SPDX-License-Identifier: MIT
3 #pragma once
4 
11 #include "ebpf_structs.h"
12 
13 #include <sal.h>
14 
15 #define EBPF_MAX_PIN_PATH_LENGTH 256
16 
20 typedef struct _ebpf_map_info
21 {
23  _Field_z_ char* pin_path;
25 
26 typedef intptr_t ebpf_handle_t;
27 extern __declspec(selectany) const ebpf_handle_t ebpf_handle_invalid = (ebpf_handle_t)-1;
28 
30 {
31  size_t producer;
32  size_t consumer;
34 
35 typedef enum _ebpf_object_type
36 {
intptr_t ebpf_handle_t
Definition: ebpf_api.h:26
const ebpf_handle_t ebpf_handle_invalid
enum _ebpf_object_type ebpf_object_type_t
_ebpf_object_type
Definition: ebpf_core_structs.h:36
@ EBPF_OBJECT_MAP
Definition: ebpf_core_structs.h:38
@ EBPF_OBJECT_PROGRAM
Definition: ebpf_core_structs.h:40
@ EBPF_OBJECT_LINK
Definition: ebpf_core_structs.h:39
@ EBPF_OBJECT_UNKNOWN
Definition: ebpf_core_structs.h:37
struct _ebpf_ring_buffer_map_async_query_result ebpf_ring_buffer_map_async_query_result_t
intptr_t ebpf_handle_t
Definition: ebpf_core_structs.h:26
struct _ebpf_map_info ebpf_map_info_t
eBPF Map Information
This file contains eBPF definitions common to eBPF programs, core execution engine as well as eBPF AP...
eBPF Map Definition as it is stored in memory.
Definition: ebpf_structs.h:102
eBPF Map Information
Definition: ebpf_core_structs.h:21
ebpf_map_definition_in_memory_t definition
Definition: ebpf_core_structs.h:22
_Field_z_ char * pin_path
Definition: ebpf_core_structs.h:23
Definition: ebpf_core_structs.h:30
size_t producer
Definition: ebpf_core_structs.h:31
size_t consumer
Definition: ebpf_core_structs.h:32