eBPF for Windows
Loading...
Searching...
No Matches
_ebpf_map_definition_in_file Struct Reference

eBPF Map Definition as it appears in the maps section of an ELF file. More...

#include <ebpf_structs.h>

Data Fields

ebpf_map_type_t type
 Type of map.
uint32_t key_size
 Size in bytes of a map key.
uint32_t value_size
 Size in bytes of a map value.
uint32_t max_entries
 Entry-count limit, or initial bucket-count hint with BPF_F_NO_MAX_ENTRIES.
uint32_t inner_map_idx
ebpf_pin_type_t pinning
uint32_t id
uint32_t inner_id
uint32_t map_flags
 Map creation flags.

Detailed Description

eBPF Map Definition as it appears in the maps section of an ELF file.

Field Documentation

◆ id

uint32_t _ebpf_map_definition_in_file::id

id is the identifier for a map template.

◆ inner_id

uint32_t _ebpf_map_definition_in_file::inner_id

For a map of map, inner_id is the id of the inner map template.

◆ inner_map_idx

uint32_t _ebpf_map_definition_in_file::inner_map_idx

When a map definition is hard coded in an eBPF program, inner_map_idx indicates the 0-based index of which map in the maps section of the ELF file is the inner map template.

◆ key_size

uint32_t _ebpf_map_definition_in_file::key_size

Size in bytes of a map key.

◆ map_flags

uint32_t _ebpf_map_definition_in_file::map_flags

Map creation flags.

◆ max_entries

uint32_t _ebpf_map_definition_in_file::max_entries

Entry-count limit, or initial bucket-count hint with BPF_F_NO_MAX_ENTRIES.

◆ pinning

ebpf_pin_type_t _ebpf_map_definition_in_file::pinning

◆ type

ebpf_map_type_t _ebpf_map_definition_in_file::type

Type of map.

◆ value_size

uint32_t _ebpf_map_definition_in_file::value_size

Size in bytes of a map value.


The documentation for this struct was generated from the following file: