eBPF for Windows
Loading...
Searching...
No Matches
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
10
11#include "ebpf_structs.h"
12
13#include <sal.h>
14
15#define EBPF_MAX_PIN_PATH_LENGTH 256
16
29
30typedef struct _ebpf_map_info
31{
32 // This definition must remain ABI-compatible with clients built before map_flags was added.
34 _Field_z_ char* pin_path;
36
37typedef intptr_t ebpf_handle_t;
38extern __declspec(selectany) const ebpf_handle_t ebpf_handle_invalid = (ebpf_handle_t)-1;
39
46
intptr_t ebpf_handle_t
Definition ebpf_api.h:28
const ebpf_handle_t ebpf_handle_invalid
struct _ebpf_map_async_query_result ebpf_map_async_query_result_t
enum _ebpf_object_type ebpf_object_type_t
struct _ebpf_map_info_definition ebpf_map_info_definition_t
eBPF Map Information
_ebpf_object_type
Definition ebpf_core_structs.h:48
@ EBPF_OBJECT_MAP
Definition ebpf_core_structs.h:50
@ EBPF_OBJECT_PROGRAM
Definition ebpf_core_structs.h:52
@ EBPF_OBJECT_LINK
Definition ebpf_core_structs.h:51
@ EBPF_OBJECT_UNKNOWN
Definition ebpf_core_structs.h:49
struct _ebpf_map_info ebpf_map_info_t
This file contains eBPF definitions common to eBPF programs, core execution engine as well as eBPF AP...
enum bpf_map_type ebpf_map_type_t
enum ebpf_pin_type ebpf_pin_type_t
Pinning type for eBPF objects. The values should match the LIBBPF_PIN_* pin types defined in libbpf.
uint32_t ebpf_id_t
Definition ebpf_structs.h:106
Definition ebpf_core_structs.h:41
size_t consumer
Definition ebpf_core_structs.h:43
size_t producer
Definition ebpf_core_structs.h:42
size_t lost_count
Definition ebpf_core_structs.h:44
eBPF Map Information
Definition ebpf_core_structs.h:21
uint32_t max_entries
Definition ebpf_core_structs.h:25
uint32_t value_size
Definition ebpf_core_structs.h:24
uint32_t key_size
Definition ebpf_core_structs.h:23
ebpf_id_t inner_map_id
Definition ebpf_core_structs.h:26
ebpf_pin_type_t pinning
Definition ebpf_core_structs.h:27
ebpf_map_type_t type
Definition ebpf_core_structs.h:22
Definition ebpf_core_structs.h:31
ebpf_map_info_definition_t definition
Definition ebpf_core_structs.h:33
_Field_z_ char * pin_path
Definition ebpf_core_structs.h:34